connectionstring
-
Hi This my connectionstring to my sql database that the database file position is : C:\Users\hossein\Desktop\MyProject\MyProject\bin\Debug\Data string constr = "Data Source=.;DataBase="+System.Windows.Forms.Application.StartupPath+"\\Data\\mydatabase.mdf;" +"Integrated Security=true"; sqlconnection con=new sqlconnection(); con.open(); I have error when compiler want to compile "con.open()" and error is "compiler can't open mydatabase" what should i do?
-
Hi This my connectionstring to my sql database that the database file position is : C:\Users\hossein\Desktop\MyProject\MyProject\bin\Debug\Data string constr = "Data Source=.;DataBase="+System.Windows.Forms.Application.StartupPath+"\\Data\\mydatabase.mdf;" +"Integrated Security=true"; sqlconnection con=new sqlconnection(); con.open(); I have error when compiler want to compile "con.open()" and error is "compiler can't open mydatabase" what should i do?