string STR=@ "Data Source=. \ SQLEXPRESS; AttachDbFilename=C: \ test. MDF;
Integrated Security=True; The Connect Timeout=30; The User Instance=True ";
SqlConnection Con=new SqlConnection (STR);
Con. The Open ();
Normal connection MDF file in this way, but in the absence of installing SQL Server on a computer, in what way can connect local MDF files?
If can't achieve, SQL MDF Viewe how
No SQL on the computer, I also didn't find SQLExpress service
CodePudding user response:
And this operation?? True have never seen..
In front of it..
CodePudding user response:
Here with the SQL client components (DLL) connection, instead of SQL Server software,
CodePudding user response:
Using ODBC
"The Provider=Microsoft. Jet. The OLEDB. 4.0. Data Source="+" C: \ test. MDF "
CodePudding user response:
https://blog.csdn.net/hotmee/article/details/52459959
CodePudding user response:
The