OleDbConnection con;
con = new OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0; Data Source = E:/connectivity dbms:/pcomp.accdb;");
con.Open();
I got this error:
'System.Data.开发者_StackOverflow社区OleDb.OleDbConnection' does not contain a definition for 'open'
The Open()
method exists. Make sure you've spelled and cased it correctly. In the error message text it starts with a lowercase letter and I suspect you have a typo in your code.
精彩评论