Hi,
First, thanks for sharing admin password, appreciated ;-)
Other than that, try switching off Integrated Security (it uses asp.net
account right now, not the credentials provided).
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development
www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
"R.A.M." <(E-Mail Removed)> wrote in message
news:em0ao9$nu0$(E-Mail Removed)...
> 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" />
>