Click here to Skip to main content
15,307,363 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys
I am developing a shopping cart in AP.NET. 2 days ago i created a database in "SQL SERVER 2008 R2". It was created successfully and everything went fine. I then copied that Database named "ESTORE" to the App_Data of my Project. But now i want to add this in "Server Explorer => Data Connections => Add Data Connection". and everytime it gives me an error like an attempt to attach an auto-named database for file C:\Users\cYpH3R x3r0\My Documents\Visual Studio 2010\Websites\New\App_Data\ESTORE.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Link is given here, that describes my problem best.

Sorry if that questions sounds ugly, i am new to ASP.NET and SQL Server (Recently Switched from PHP)

1 solution

used data connection instead, coz App_Data folder has higher security and is more difficult to access

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900