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

sys.schemas (Transact-SQL)

Contains a row for each database schema.

NoteNote

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.

Requires membership in the public role. For more information, see Metadata Visibility Configuration.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.