开发者

Asp.net C# connection with access 2007

开发者 https://www.devze.com 2023-01-28 21:36 出处:网络
OleDbConnection con; con = new OleDbConnection(\"Provider = Microsoft.ACE.OLEDB.12.0; Data Source = E:/connectivity dbms:/pcomp.accdb;\");

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消