"An attempt to attach an auto-named database for file C:UsersJohndocumentsvisual studio 2010ProjectsPASPASinDebug//PatAddSys.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
What's wrong here? I have the correct code for my path ( I think) but still this error occurs here is my database path
private string dbPath = Application.StartupPath + "//PatAddSys.mdf";
Here's the location of My Database
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…