Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Schema catalog view - sys.schemas
Applies to: 👁 Image
SQL Server 👁 Image
Azure SQL Managed Instance 👁 Image
Azure Synapse Analytics 👁 Image
Analytics Platform System (PDW) 👁 Image
SQL analytics endpoint in Microsoft Fabric 👁 Image
Warehouse in Microsoft Fabric
Contains a row for each database schema.
Note
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. |
Remarks
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.
Each schema has an owner. The owner is a security principal.
Permissions
Requires membership in the public role.
Related content
Feedback
Was this page helpful?
