D
Deltafox
Guest
Many hours i have spend trying to get this work, how should i do it?
1) I download a starterkit for ASP.NET 2.0 that uses a MSSQL 2005 Express database: http://msdn.microsoft.com/vstudio/downloads/starterkits/
2) Open it with Visual Studio
3) Then compile and upload
4) I use this connection string:
Data Source=.\SQLExpress;
Integrated Security=True;
AttachDBFilename=|DataDirectory|TimeTracker.mdf;
User Instance=false
(do not use user instances in shared hosting environment)
5) So my database is in /httpdocs/app_data/TimeTracker.mdf, this database needs to be automatically attached to MSSQL 2005 Express database. But it won't, getting this error:
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Inetpub\vhosts\domainname.nl\httpdocs\App_Data\TimeTracker.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
- there is no database with the same name
How should i do this right?
Thank you!
1) I download a starterkit for ASP.NET 2.0 that uses a MSSQL 2005 Express database: http://msdn.microsoft.com/vstudio/downloads/starterkits/
2) Open it with Visual Studio
3) Then compile and upload
4) I use this connection string:
Data Source=.\SQLExpress;
Integrated Security=True;
AttachDBFilename=|DataDirectory|TimeTracker.mdf;
User Instance=false
(do not use user instances in shared hosting environment)
5) So my database is in /httpdocs/app_data/TimeTracker.mdf, this database needs to be automatically attached to MSSQL 2005 Express database. But it won't, getting this error:
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Inetpub\vhosts\domainname.nl\httpdocs\App_Data\TimeTracker.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
- there is no database with the same name
How should i do this right?
Thank you!