Jump to content

OLEDB connection to MS Access

- - - - -

  • Please log in to reply
No replies to this topic

#1
gamiR

gamiR

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
Hello,
in my application i want to open MS Access database (i.e. *.mdb file) by
allowing user to select database using OpenFiledialog. Now after knowing
path of user selected database i create oledb connection as,
 OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;data source="+path);

I have one combobox in which i want to fill tables of selected database.
So which sql query for select command i must run to obtain only table names of given database?

Thanking you!
Busy Penguin




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users