471,605 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

OleDBConnection.Open() Problem

Hello NG !
I would like to open a MS Access Db by C#.
I use the following code:

string strConnectionText = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=C:\SWDev\My_Programs\Controller\DataBase\Te st.mdb";
OleDBConnection dbConnection = new OleDBConnection();
dbConnection.ConnectionString = strConnectionText;
dbConnection.Open();

But i allways get a error that I do not have the MDAC 2.6 or later.
But the component checker showns me that i have MDAC 2.8...
Whats wrong ???

Thanks and regards
Marcel Hug
Dec 28 '05 #1
2 1564
Hi,

The code is fine , so you may have a problem with mdac versions you have
installed , have you tried the program in another computer?

what about if you reinstall mdac?

these errors are a pain :(
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Marcel Hug" <ma**********@ch.abb.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello NG !
I would like to open a MS Access Db by C#.
I use the following code:

string strConnectionText = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=C:\SWDev\My_Programs\Controller\DataBase\Te st.mdb";
OleDBConnection dbConnection = new OleDBConnection();
dbConnection.ConnectionString = strConnectionText;
dbConnection.Open();

But i allways get a error that I do not have the MDAC 2.6 or later.
But the component checker showns me that i have MDAC 2.8...
Whats wrong ???

Thanks and regards
Marcel Hug

Dec 28 '05 #2
Ignacio Machin ( .NET/ C# MVP ) schrieb:
Hi,

The code is fine , so you may have a problem with mdac versions you have
installed , have you tried the program in another computer? No possability !!! :-(((
what about if you reinstall mdac? I have allready done, but no improvment

these errors are a pain :(

Yes they are.
Dec 28 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.