Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Need Help in reading names of tables in MySQL database
View previous topic :: View next topic  
Author Message
EricBerg
Newbie


Joined: 11 Oct 2005
Posts: 1

PostPosted: Oct 11th, 2005 01:49 PM    Post subject: Need Help in reading names of tables in MySQL database Reply with quote

I am trying to get a list of the various tables in a MySQL database. I can connect to the database with the following code:

Set cnn1 = New ADODB.Connection
cnn1.ConnectionString = "DSN=MyODBC;UID=root;PWD=password;"
cnn1.Open

If I'm using an access database I simply do:

With SelectedDatabase
For I = 0 To .TableDefs.Count - 1
cmbAccessTable.AddItem .TableDefs(I).Name
Next I
End With

How can I access the names of the various tables in MySQL database?

Kind Regards,
Eric
Back to top
View user's profile Send private message Send e-mail
dougthomas
Moderator


Joined: 27 Jul 2005
Posts: 271
Location: Essex, UK

PostPosted: Oct 12th, 2005 05:29 AM    Post subject: Reply with quote

Hi,

The information here:
[link]
may be of some use to you.

Regards
Doug
_________________
If you can see the light at the end of the tunnel, it probably means there's a Train coming.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic