CREATE DATABASE permission denied in database 'master'.

Posted by MuraliVijay CSK on Stack Overflow See other posts from Stack Overflow or by MuraliVijay CSK
Published on 2010-05-27T12:52:49Z Indexed on 2010/05/27 13:01 UTC
Read the original article Hit count: 189

I have used this connection string to connect my database....

 <connectionStrings>
<add name="connectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Taxi.mdf;Database=Taxi;Trusted_Connection=Yes;" providerName="System.Data.SqlClient"/>

i got this error while running in IIS

Exception Details: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'.

Cannot attach the file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Taxi.mdf' as database 'Taxi'.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2005