Using OLEDB in a VB.NET Application

G

Guest

I am following some code examples referring to using system.data.oledb - however, I do not have "oledb" available as an item to select. I type system.data., and I can see SQLClient, but not oledb. I assume I am missing a reference, but cannot find anything documentation to tell me which reference I could add to have oledb available in my app

Any ideas

- Thanks

JRD
 
K

Klaus H. Probst

John,

If you have a reference to System.Data.dll then that's it, that's where the
provider lives. The namespace is System.Data.Oledb.

You might be missing an "imports" or "using" statement at the top of the
file?


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

John Dougherty said:
I am following some code examples referring to using system.data.oledb -
however, I do not have "oledb" available as an item to select. I type
system.data., and I can see SQLClient, but not oledb. I assume I am missing
a reference, but cannot find anything documentation to tell me which
reference I could add to have oledb available in my app.
 
C

Cor

Hi John,

I asume you have a 2002 version, OleDb is 2003

Cor
I am following some code examples referring to using system.data.oledb -
however, I do not have "oledb" available as an item to select. I type
system.data., and I can see SQLClient, but not oledb. I assume I am missing
a reference, but cannot find anything documentation to tell me which
reference I could add to have oledb available in my app.
 
R

Ron Allen

Cor,
OleDb is in VS 2002/Framework 1.0 as well.
For John, I just tried this on my older VS 2002 project and it worked
System.Data.OleDb is the namespace. The only references added on this
project are System, System.Data, and System.XML.

Ron Allen
 
C

Cor

Hi Ron,

Thanks, where do I go wrong than, you could not use MS Access I thought in
2002, but maybe I am totally wrong, let us keep it by that by that.

I did not check this one.

Thanks again,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top