Export (0) Print
Expand All
12 out of 23 rated this helpful - Rate this topic

sys.sysobjects (Transact-SQL)

Updated: 14 April 2006

Contains one row for each object that is created within a database, such as a constraint, default, log, rule, and stored procedure.

ms177596.note(en-US,SQL.90).gifImportant:
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. For a list of valid object types, see sys.objects.

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.

If you use any of the following SQL Server 2005 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
ms177596.note(en-US,SQL.90).gifImportant:

Overflows or returns NULL if the number of users and roles exceeds 32,767.

For more information, see Querying the SQL Server System Catalog.

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

Reserved for use by replication.

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. For a list of valid object types, see sys.objects.

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.

Release History

14 April 2006

Updated content:
  • Corrected the definition of the uid column and added the Important note.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.