Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find out no of user tables in u r database

Status
Not open for further replies.

andypower

Programmer
Aug 10, 2004
23
0
0
IN
i m using vb 6 and sql server 7
i want to find out no of user table[i.e created by user not system table ]in my sql server database.
suppose my database name is JewellersData.
how to write query for that in vb 6 or in query analizer
 
Morning,

The following code should do the trick.

Code:
use DatabaseToCountOnName
select count(*) from sysobjects
where type='U'

Cheers,
Geezza
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top