Powered by Blogger.

Saturday, February 15, 2014

sys.objects type in SQL Server 2008



sys.objects contains very much useful information about each user-defined, schema-scoped object that is created within a database.

Also you can check my previous posts on:

- Extension method in MVC

- User Defined Function example in SQL Server 2008

- ExecuteNonQuery(), ExecuteReader() and ExecuteScalar() in Ado.Net

If you will run the below query then you will get all the information:

SELECT * FROM sys.objects

Here we will see the types and corresponding description for various objects in SQL Server 2008.

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

Refer this MSDN article for more information.





0 comments

Post a Comment