- Aggregate
Function: Get the name of all
Aggregate functions.
Select name,type from sysobjects where type='AF'
- Foreign
Key: Get the name of all Foreign
Keys.
Select name,type from sysobjects where type='F'
- Function: Get the name of all scalar functions.
Select name,type from sysobjects where type='FN'
- Stored
Procedure: Get the name of all
Stored Procedures.
Select name,type from sysobjects where type='P'
- Primary
Key: Get the name of all
Primary Keys.
Select name,type from sysobjects where type='PK'
- Table-Valued-Function: Get the name of all Aggregate functions.
Select name,type from sysobjects where type='TF'
- Trigger: Get the name of all DML triggers.
Select name,type from sysobjects where type='TR'
- Tables: Get the name of all Tables (user-defined).
Select name,type from sysobjects where type='U'
- View: Get the name of all Views.
Select name,type from sysobjects where type='V'
The following are all the types
of entities in the sysobjects view:
AF = Aggregate function (CLR)
C = CHECK constraint
D = DEFAULT (constraint or stand-alone)
F = FOREIGN KEY constraint
FN = SQL scalar function
FS = Assembly (CLR) scalar-function
FT = Assembly (CLR) table-valued function
IF = SQL inline table-valued function
IT = Internal table
P = SQL Stored Procedure
PC = Assembly (CLR) stored-procedure
PG = Plan guide
PK = PRIMARY KEY constraint
R = Rule (old-style, stand-alone)
RF = Replication-filter-procedure
S = System base table
SN = Synonym
SO = Sequence object
SQ = Service queue
TA = Assembly (CLR) DML trigger
TF = SQL table-valued-function
TR = SQL DML trigger
TT = Table type
U = Table (user-defined)
UQ = UNIQUE constraint
V = View
X = Extended stored procedure
C = CHECK constraint
D = DEFAULT (constraint or stand-alone)
F = FOREIGN KEY constraint
FN = SQL scalar function
FS = Assembly (CLR) scalar-function
FT = Assembly (CLR) table-valued function
IF = SQL inline table-valued function
IT = Internal table
P = SQL Stored Procedure
PC = Assembly (CLR) stored-procedure
PG = Plan guide
PK = PRIMARY KEY constraint
R = Rule (old-style, stand-alone)
RF = Replication-filter-procedure
S = System base table
SN = Synonym
SO = Sequence object
SQ = Service queue
TA = Assembly (CLR) DML trigger
TF = SQL table-valued-function
TR = SQL DML trigger
TT = Table type
U = Table (user-defined)
UQ = UNIQUE constraint
V = View
X = Extended stored procedure
No comments:
Post a Comment