How to create connection to database in VS2010 without SQL Client dynamically?
I tried using ConnectionStringSettings
and SqlConnection
and I succeeded, but I'm not supposed to use SQL Client.
I'm using Massive .
It might be that you just miss to reference System.Configuration
in your project and consequently Massive cannot find the connection string in your app.config.
Following the instructions on github I could query my SQL Express database without any problems using Massive having a plain SqlClient
connection string in my app.config.
You should be able to use System.Data.OleDb.OleDbConnection
.
Use a connection string like this:
Provider=SQLOLEDB;Server=myServerAddress;Database=myDataBase;Uid=myUsername; Pwd=myPassword;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.