开发者

Asp.net C# connection with access 2007

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜