By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

how to count how many table in database at runtime in visual basic 6.0

P: 17
Hi all,

I'd like to know how many table in sql database or Access database at runtime in visual basic 6.0
thanks,
Feb 4 '08 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
try to use this

"select name,id from sysobjects where xtype='U'"

connect to master database for this.
Feb 4 '08 #2

P: 17
I mean not sql statment.

how many tables in sql datase. how to code in visual basic.
Feb 4 '08 #3

debasisdas
Expert 5K+
P: 8,127
The query in previous post returns all the tables .

You can use COUNT() on that for the number of tables.
Feb 4 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.