public string Access_Con = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB\Financial.mdf;Integrated Security=True;User Instance=True;";
Quote:An attempt to attach an auto-named database for file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
public string Access_Con = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|E:\AS-Accounting\Main-proj\accounting\Bisha_accounting\bin\Debug\DB\Financial.mdf ;Integrated Security=True;User Instance=True;";
E:\AS-Accounting\Main-proj\accounting\Bisha_accounting\AppData\DB\Financial.mdf
|DataDirectory|
AppData
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)