Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
What is the problem in connection string of my program?
Joe Wilson
10y
1.2k
1
Reply
What is the problem of connection string that can not connect to the access database please,Guide me.
public DataTable ShowData(string s1)
{
OleDbConnection CN = new OleDbConnection();
CN.ConnectionString = "provider = microsoft.Ace.oledb.12.0; Data source = D:\\Database 10.accdb";
CN.Open();
OleDbCommand CMT = new OleDbCommand(s1, CN);
OleDbDataReader da = CMT.ExecuteReader();
DataTable DT = new DataTable();
DT.Load(da);
CN.Close();
return DT;
}
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
Winfrom sync from mobile to WinForm app
Programmatically lock my desktop (workstation) and restrict