PC Review


Reply
Thread Tools Rate Thread

Any solution for error message "Could not attach file 'App_Data\Database.mdf' as database 'Database'."?

 
 
ornit_sagy@yahoo.com
Guest
Posts: n/a
 
      8th Jan 2007
Hello,
I'm trying to connect to Database.mdf from an asp.net file and I get
the following error message:
Could not attach file 'App_Data\Database.mdf' as database
'Database'.
CREATE DATABASE permission denied in database 'master'
The connection string I use is:

Provider=SQLNCLI;Server=localhost\SQLExpress;AttachDbFilename=App_Data\Database.mdf;Database=Database;Trusted_Connection=Yes
Thanks!!!
Ornit

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any shortcut for "Debug > Attach > Attach to aspnet_wp.exe"? Warren Tang Microsoft ASP .NET 1 17th Sep 2008 04:46 PM
System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. weird0 Microsoft C# .NET 1 20th Apr 2007 10:04 AM
Any solution for error message "Could not attach file'App_Data\Database.mdf' as database 'Database'."? ornit_sagy@yahoo.com Microsoft ADO .NET 1 8th Jan 2007 09:12 PM
"CREATE DATABASE permission denied in database 'master'. Could not attach file..." R.A.M. Microsoft ADO .NET 3 17th Dec 2006 09:35 PM
why when i attach a word file does it attach itself as a dot file. =?Utf-8?B?YnJpYW4=?= Microsoft Outlook Discussion 1 23rd Jan 2005 06:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.