Query to fetch all user, system, procedures, functions tables in a database:

use yourdbname
select * from sysobjects where type=’s’ order by name

Query to fetch all system tables in a database:
select * from sysobjects where type=’U’ order by name

Query to fetch all procedures in a database:
select * from sysobjects where type=’p’

Query to fetch all functions(userdefined or system) in a database:
select * from sysobjects where type=’fn’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s