C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Sqlquery please


Posted Date: 03 Jul 2008      Total Responses: 2

Posted By: Naresh       Member Level: Silver     Points: 1




How many tables are in one database by using query analzer please tell me the query..





Responses

Author: Ravindra Kumar Singh    03 Jul 2008Member Level: GoldRating:     Points: 2

Hi,

Use this query:

select count(*) from sysobjects where xtype = 'U'

where U is User Table

and if you want system table also then use this query

select count(*) from sysobjects where xtype = 'U' or xtype='S'

where S is system table



Author: Bunty    03 Jul 2008Member Level: DiamondRating:     Points: 3

Hi,

Please select the appropriate database and then execute the below query to get the required result,

Select count(*) from sysobjects
Where xtype='u'

Thanks and Regards
S.S.Bajoria


Thanks & Regards
S.S.Bajoria



Post Reply
You must Sign In to post a response.
Next : Sqlquery please
Previous : Sqlquery please
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use