omg...can ANYONE tell me how to fix this?

Discussion in 'Databases' started by kisamorednn, Apr 27, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. i was TRYING to get my sqlserverexpress mdf file to work with DASP. after reading very different KB articles....one of the articles mentioned "detaching" my database from my project. soooo.....i right-clicked my mdf file in visualwebdeveloper express and sure enough, there is a "detach" - so i chose it.
    now wait.......there isn't a "attach" command in the list.......hmmmm.....how do i re-attach it?. it's still there....along with all the tables and data. when i try to run my app now (locally) i get this error:

    An attempt to attach an auto-named database for file C:\Documents and Settings\James\My Documents\Visual Studio 2008\WebSites\WebSite1\App_Data\/Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

    i have no clue how to fix this. so now my app won't even run locally.
    why is there no "attach" command....only a "detach"?
     
  2. ...Use the Server Explorer, Ctrl+Alt+S, and Add the connection again.
    You can even use that to connect your local project to Access DB's.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page