Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sys.schemas (Transact-SQL)
Collapse the table of content
Expand the table of content

sys.schemas (Transact-SQL)

Contains a row for each database schema.

ms176011.note(en-US,SQL.90).gifNote:
Database schemas are different from XML schemas, which are used to define the content model of XML documents.

Column name Data type Description

name

sysname

Name of the schema. Is unique within the database.

schema_id

int

ID of the schema. Is unique within the database.

principal_id

int

ID of the principal that owns this schema.

Database schemas act as namespaces or containers for objects, such as tables, views, procedures, and functions, that can be found in the sys.objects catalog view.

Community Additions

ADD
Show:
© 2015 Microsoft