Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
how to count how many table in database at runtime in visual basic 6.0
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
jimmylee
New Member
Join Date:
Feb 2008
Posts:
17
#1
how to count how many table in database at runtime in visual basic 6.0
Feb 4 '08, 06:40 AM
Hi all,
I'd like to know how many table in sql database or Access database at runtime in visual basic 6.0
thanks,
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Feb 4 '08, 08:42 AM
try to use this
"select name,id from sysobjects where xtype='U'"
connect to master database for this.
Comment
Post
Cancel
jimmylee
New Member
Join Date:
Feb 2008
Posts:
17
#3
Feb 4 '08, 09:12 AM
I mean not sql statment.
how many tables in sql datase. how to code in visual basic.
Comment
Post
Cancel
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#4
Feb 4 '08, 09:54 AM
The query in previous post returns all the tables .
You can use COUNT() on that for the number of tables.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment