sys.sysobjects (Transact-SQL)
Contains one row for each object that is created within a database, such as a constraint, default, log, rule, and stored procedure.
Important
This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping SQL Server 2000 System Tables to SQL Server 2005 System Views. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
Column name |
Data type |
Description |
---|---|---|
name |
sysname |
Object name |
id |
int |
Object identification number |
xtype |
char(2) |
Object type. Can be one of the following object types: AF = Aggregate function (CLR) C = CHECK constraint D = Default or DEFAULT constraint F = FOREIGN KEY constraint L = Log FN = Scalar function FS = Assembly (CLR) scalar-function FT = Assembly (CLR) table-valued function IF = In-lined table-function IT = Internal table 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 (type is K) V = View X = Extended stored procedure |
uid |
smallint |
Schema ID of the owner of the object. For databases upgraded from an earlier version of SQL Server, the schema ID is equal to the user ID of the owner. Important If you use any of the following SQL Server DDL statements, you must use the sys.objects catalog view instead of sys.sysobjects. CREATE | ALTER | DROP USER CREATE | ALTER | DROP ROLE CREATE | ALTER | DROP APPLICATION ROLE CREATE SCHEMA ALTER AUTHORIZATION ON OBJECT Overflows or returns NULL if the number of users and roles exceeds 32,767. |
info |
smallint |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
status |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
base_schema_ver |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
replinfo |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
parent_obj |
int |
Object identification number of the parent object. For example, the table ID if it is a trigger or constraint. |
crdate |
datetime |
Date the object was created. |
ftcatid |
smallint |
Identifier of the full-text catalog for all user tables registered for full-text indexing, and 0 for all user tables that are not registered. |
schema_ver |
int |
Version number that is incremented every time the schema for a table changes. Always returns 0. |
stats_schema_ver |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
type |
char(2) |
Object type. Can be one of the following values: 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 functionIF = In-lined table-function IT - Internal table K = PRIMARY KEY or UNIQUE constraint L = Log P = Stored procedure PC = Assembly (CLR) stored-procedure R = Rule 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 V = View X = Extended stored procedure |
userstat |
smallint |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
sysstat |
smallint |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
indexdel |
smallint |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
refdate |
datetime |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
version |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
deltrig |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
instrig |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
updtrig |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
seltrig |
int |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |
category |
int |
Used for publication, constraints, and identity. |
cache |
smallint |
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. |