R
R.A.M.
Hello,
I am learning .NET 3.0. I am writing application using MIMProjekty SQL
Server 2005 database.
At C# command (identifiers are in Polish language):
SqlConnection Po³±czenie = new
SqlConnection(ConfigurationManager.ConnectionStrings["MIMProjekty"].ConnectionString);
Po³±czenie.Open();
I receive the following error:
CREATE DATABASE permission denied in database 'master'.
Could not attach file
'E:\Inetpub\wwwroot\MIMProjekty\App_Data\MIMProjekty.mdf' as database
'MIMProjekty'.
Could you help me please? The error is strange for me.
I use mixed mode in my SQL Server 2005 Express Edition. The database
'MIMProjekty' looks fine in Management Studio Express.
Here's my connection string from web.config:
<add name="MIMProjekty" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\MIMProjekty.mdf;Initial
Catalog=MIMProjekty;Integrated Security=True;uid=sa;pwd=sqlserver"
providerName="System.Data.SqlClient" />
I am learning .NET 3.0. I am writing application using MIMProjekty SQL
Server 2005 database.
At C# command (identifiers are in Polish language):
SqlConnection Po³±czenie = new
SqlConnection(ConfigurationManager.ConnectionStrings["MIMProjekty"].ConnectionString);
Po³±czenie.Open();
I receive the following error:
CREATE DATABASE permission denied in database 'master'.
Could not attach file
'E:\Inetpub\wwwroot\MIMProjekty\App_Data\MIMProjekty.mdf' as database
'MIMProjekty'.
Could you help me please? The error is strange for me.
I use mixed mode in my SQL Server 2005 Express Edition. The database
'MIMProjekty' looks fine in Management Studio Express.
Here's my connection string from web.config:
<add name="MIMProjekty" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\MIMProjekty.mdf;Initial
Catalog=MIMProjekty;Integrated Security=True;uid=sa;pwd=sqlserver"
providerName="System.Data.SqlClient" />