olebd namespace

  • Thread starter Thread starter Andrew Bullock
  • Start date Start date
A

Andrew Bullock

Hi,

Using beta 2 VB 2005, can someone tell me what namespace i need to get
the oledb/ado package to connect to a JET 4 database?

Everywhere seems to say use:

Imports System.Data.Oledb

But I dont have a System.Data namespace, whats going on?


Thanks

Andrew
 
well i would say reinstall VS.Net , and the framework ( preferable a non
beta version ) as it is sure there in my dev environment ( Imports
System.Data.OleDb )
something is teribly wrong on your system thats for sure

regards

Michel posseth
 
Hi,

Andrew Bullock said:
Hi,

Using beta 2 VB 2005, can someone tell me what namespace i need to get the
oledb/ado package to connect to a JET 4 database?

Everywhere seems to say use:

Imports System.Data.Oledb

But I dont have a System.Data namespace, whats going on?

Make sure your project has a reference to System.Data.dll, see solution
explorer: expand "References". If it hasn't then add it using
menu->Project->Add Reference.


HTH,
Greetings
 
Yes that is a good one this might solve his problem ,,, question then is
why isn`t it there standard ( as it should be ) is this a bug in the
beta version ?

regards

Michel
 
Hi,

m.posseth said:
Yes that is a good one this might solve his problem ,,, question then is
why isn`t it there standard ( as it should be ) is this a bug in the
beta version ?

Not that i know and i'm not sure why it wouldn't be there, but it's just
that when a namespace isn't found the first thing i think about is
(assembly) references. It might as well be a more serious problem like
you're suggesting....

I also noticed "References" inside "Solution Explorer" doesn't show in
VB(vc2005b2) unless you turn on "Show All Files" (menu->Project).

Greetings
 
Bart said:
Hi,




Make sure your project has a reference to System.Data.dll, see solution
explorer: expand "References". If it hasn't then add it using
menu->Project->Add Reference.

Added System.Data, which im sure wasn't there before :/ Anyway thanks!

Now to see if it works!

Andrew
 
Well and as we see now you were right ,,,, maybe i am just always thinking
in the worst case scenario :-)

so it was good that you were around before he started formatting his
computer ;-)

I also noticed "References" inside "Solution Explorer" doesn't show in
VB(vc2005b2) unless you turn on "Show All Files" (menu->Project).

This is also the case in the release version ( i use the professional
release version of VS 2005 ) so they might call this "by design" when the
rest of the people notice this and start complaining

regards


Michel Posseth [MCP]
 

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

Back
Top