Tip of the Day : Different XTYPE Values in the sys.sysobjects System View or dbo.sysobjects System Table

Welcome to SQL Server Helper !!!

This site is intended for those who are beginning to use SQL Server as part of their day-to-day activities.  You will find in this site a collection of useful functions, triggers, stored procedures and tips and tricks related to SQL Server.

Should you have any comments or questions regarding this site or if you want to ask SQL Server-related questions, e-mail us here.

We hope we are able to help and we are glad to help!!!

SQL Server Tip of the Day - March 19, 2025

Different XTYPE Values in the sys.sysobjects System View or dbo.sysobjects System Table

The sys.sysobjects system compatibility view contains one row for each object that is created within a database, such as functions, stored procedures, constraints, tables and views.  One of the columns of the sys.sysobjects system view is the XTYPE which contains the type of object a particular row contains.  The value in the XTYPE column can be one of the following object types:

  • AF : Aggregate function (CLR)
  • C : CHECK Constraint
  • D : Default or DEFAULT Constraint
  • F : FOREIGN KEY Constraint
  • FN : Scalar Function
  • FS : Assembly (CLR) Scalar-Function
  • FT : Assembly (CLR) Table-Valued Function
  • IF : In-lined Table Function
  • IT : Internal Table
  • L : Log
  • P : Stored Procedure
  • PC : Assembly (CLR) Stored Procedure
  • PK : PRIMARY KEY Constraint (Type is K)
  • RF : Replication Filter Stored Procedure
  • S : System Table
  • SN : Synonym
  • SQ : Service Queue
  • TA : Assembly (CLR) DML Trigger
  • TF : Table Function
  • TR : SQL DML Trigger
  • TT : Table Type
  • U : User Table
  • UQ : UNIQUE Constraint
  • V : View
  • X : Extended Stored Procedure

SQL Server 2012

SQL Server 2008

User-Defined Functions

Date Functions

A collection of useful user-defined functions that deal with dates.

String Functions

A collection of useful user-defined functions that deal with strings (varchar/char/nvarchar/nchar).

Tree Functions

A collection of useful user-defined functions that deal with tree or hierarchical design structures.

Table-Valued Functions

A collection of useful table-valued user-defined functions that can be used to join with other tables.

SQL Server Built-in Functions

A reference to all built-in functions available within SQL Server grouped into categories.

Tips and Tricks

A collection of useful SQL Server-related tips and tricks:

SQL Server Error Messages

A list of SQL Server error messages and for certain error messages, discusses ways on how to solve the error or work around them:

Frequently Asked Questions