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 !






How to know how many user defined tables are present in a particular Database?


Posted Date: 22 May 2008    Resource Type: Tips    Category: Visual Studio

Posted By: Bunty       Member Level: Diamond
Rating:     Points: 3



Below sql query is used to know how many user defined tables are present in a particular database.

select the required database
SELECT * FROM SYSOBJECTS
WHERE XTYPE='U'
EXECUTE THE QUERY




Responses

Author: Siva Prasad    22 May 2008Member Level: Gold   Points : 2
Hello Satyanarayana,

First we have to get all the datatable into the dataset

Then from the dataset, we have to search which are user defined by XTYPE = "Table".

I did it, its worked for me.

Siva Prasad.


Author: Bunty    09 Jun 2008Member Level: Diamond   Points : 0
Hi,
Thanks for replying Shiva prasad


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Cycle through ClipBoard
Previous Resource: How to clear Internet Cache,Cookies,Templates and History files.
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use