\"An attempt to attach an auto-named database for file C:\\Users\\John\\documents\\visual studio 2010\\Projects\\PAS\\PAS\\bin\\Debug//PatAddSys.mdf failed. A database with
FOR FUTURE HELP !!
you've corrected it:
private string dbPath = Application.StartupPath + "//PatAddSys.mdf";
BUT just have to do one step is to use the Backslash " \ " instead of SLASH " / " so it should to be like this :
private string dbPath = Application.StartupPath + "\\PatAddSys.mdf";
&thanks this line saved me alot of work :)