Skip to content

Commit 856fd23

Browse files
committed
Update T-SQL tutorial and other articles touched by previous include PR
1 parent 4f691c8 commit 856fd23

8 files changed

Lines changed: 676 additions & 644 deletions
Lines changed: 70 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: "Catalog Views (Transact-SQL)"
3-
description: System Catalog Views (Transact-SQL)
2+
title: "System catalog views (Transact-SQL)"
3+
description: Catalog views return information that is used by the Database Engine.
44
author: rwestMSFT
55
ms.author: randolphwest
6-
ms.date: "05/02/2016"
6+
ms.date: 12/02/2022
77
ms.service: sql
88
ms.subservice: system-objects
99
ms.topic: "reference"
@@ -19,97 +19,98 @@ helpviewer_keywords:
1919
- "catalog views [SQL Server], about catalog views"
2020
dev_langs:
2121
- "TSQL"
22-
ms.assetid: 13bccc2f-ed3c-4b58-abd0-ca8bf34a66b8
2322
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current"
2423
---
25-
# System Catalog Views (Transact-SQL)
24+
# System catalog views (Transact-SQL)
2625

2726
[!INCLUDE[sql-asdb-asa-pdw](../../includes/applies-to-version/sql-asdb-asa-pdw.md)]
2827

2928
Catalog views return information that is used by the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)]. We recommend that you use catalog views because they are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized forms of this information. All user-available catalog metadata is exposed through catalog views.
3029

31-
> [!NOTE]
30+
> [!NOTE]
3231
> Catalog views do not contain information about replication, backup, database maintenance plan, or [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent catalog data.
3332
34-
Some catalog views inherit rows from other catalog views. For example, the [sys.tables](../../relational-databases/system-catalog-views/sys-tables-transact-sql.md) catalog view inherits from the [sys.objects](../../relational-databases/system-catalog-views/sys-objects-transact-sql.md) catalog view. The sys.objects catalog view is referred to as the base view, and the sys.tables view is called the derived view. The sys.tables catalog view returns the columns that are specific to tables and also all the columns that the sys.objects catalog view returns. The sys.objects catalog view returns rows for objects other than tables, such as stored procedures and views. After a table is created, the metadata for the table is returned in both views. Although the two catalog views return different levels of information about the table, there is only one entry in metadata for this table with one name and one object_id. This can be summarized as follows:
33+
## Remarks
34+
35+
Some catalog views inherit rows from other catalog views. For example, the [sys.tables](../../relational-databases/system-catalog-views/sys-tables-transact-sql.md) catalog view inherits from the [sys.objects](../../relational-databases/system-catalog-views/sys-objects-transact-sql.md) catalog view. The `sys.objects` catalog view is referred to as the base view, and the `sys.tables` view is called the derived view. The `sys.tables` catalog view returns the columns that are specific to tables and also all the columns that the `sys.objects` catalog view returns. The `sys.objects` catalog view returns rows for objects other than tables, such as stored procedures and views. After a table is created, the metadata for the table is returned in both views. Although the two catalog views return different levels of information about the table, there is only one entry in metadata for this table with one name and one `object_id`. This can be summarized as follows:
3536

3637
- The base view contains a subset of columns and a superset of rows.
3738
- The derived view contains a superset of columns and a subset of rows.
3839

39-
> [!IMPORTANT]
40-
> In future releases of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], [!INCLUDE[msCoName](../../includes/msconame-md.md)] may augment the definition of any system catalog view by adding columns to the end of the column list. We recommend against using the syntax SELECT \* FROM *sys.catalog_view_name* in production code because the number of columns returned might change and break your application.
40+
> [!IMPORTANT]
41+
> In future releases of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], [!INCLUDE[msCoName](../../includes/msconame-md.md)] may augment the definition of any system catalog view by adding columns to the end of the column list. We recommend against using the syntax `SELECT * FROM sys.<catalog_view_name>` in production code because the number of columns returned might change and break your application.
4142
4243
The catalog views in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] have been organized into the following categories:
4344

4445
:::row:::
4546
:::column:::
46-
[Always On Availability Groups Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/always-on-availability-groups-catalog-views-transact-sql.md)
47-
47+
[Always On Availability Groups Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/always-on-availability-groups-catalog-views-transact-sql.md)
48+
4849
[Azure SQL Database Catalog Views](../../relational-databases/system-catalog-views/azure-sql-database-catalog-views.md)
49-
50-
[Change Tracking Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/change-tracking-catalog-views-sys-change-tracking-databases.md)
51-
52-
[CLR Assembly Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/clr-assembly-catalog-views-transact-sql.md)
53-
54-
[Data Collector Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/data-collector-views-transact-sql.md)
55-
56-
[Data Spaces &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/data-spaces-transact-sql.md)
57-
58-
[Database Mail Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/database-mail-views-transact-sql.md)
59-
60-
[Database Mirroring Witness Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/database-mirroring-witness-catalog-views-sys-database-mirroring-witnesses.md)
61-
62-
[Databases and Files Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/databases-and-files-catalog-views-transact-sql.md)
63-
64-
[Endpoints Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/endpoints-catalog-views-transact-sql.md)
65-
66-
[Extended Events Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/extended-events-catalog-views-transact-sql.md)
67-
68-
[Extended Properties Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/extended-properties-catalog-views-sys-extended-properties.md)
69-
70-
[External Operations Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/external-operations-catalog-views-transact-sql.md)
71-
72-
[Filestream and FileTable Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/filestream-and-filetable-catalog-views-transact-sql.md)
73-
74-
[Full-Text Search and Semantic Search Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/full-text-search-and-semantic-search-catalog-views-transact-sql.md)
75-
76-
[Linked Servers Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/linked-servers-catalog-views-transact-sql.md)
50+
51+
[Change Tracking Catalog Views (Transact-SQL)](../system-catalog-views/change-tracking-catalog-views-sys-change-tracking-databases.md)
52+
53+
[CLR Assembly Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/clr-assembly-catalog-views-transact-sql.md)
54+
55+
[Data Collector Views (Transact-SQL)](../../relational-databases/system-catalog-views/data-collector-views-transact-sql.md)
56+
57+
[Data Spaces (Transact-SQL)](../../relational-databases/system-catalog-views/data-spaces-transact-sql.md)
58+
59+
[Database Mail Views (Transact-SQL)](../../relational-databases/system-catalog-views/database-mail-views-transact-sql.md)
60+
61+
[Database Mirroring Witness Catalog Views (Transact-SQL)](../system-catalog-views/database-mirroring-witness-catalog-views-sys-database-mirroring-witnesses.md)
62+
63+
[Databases and Files Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/databases-and-files-catalog-views-transact-sql.md)
64+
65+
[Endpoints Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/endpoints-catalog-views-transact-sql.md)
66+
67+
[Extended Events Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/extended-events-catalog-views-transact-sql.md)
68+
69+
[Extended Properties Catalog Views (Transact-SQL)](../system-catalog-views/extended-properties-catalog-views-sys-extended-properties.md)
70+
71+
[External Operations Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/external-operations-catalog-views-transact-sql.md)
72+
73+
[Filestream and FileTable Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/filestream-and-filetable-catalog-views-transact-sql.md)
74+
75+
[Full-Text Search and Semantic Search Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/full-text-search-and-semantic-search-catalog-views-transact-sql.md)
76+
77+
[Linked Servers Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/linked-servers-catalog-views-transact-sql.md)
7778
:::column-end:::
7879
:::column:::
79-
[Messages &#40;for Errors&#41; Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/messages-for-errors-catalog-views-sys-messages.md)
80-
81-
[Object Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md)
82-
83-
[Partition Function Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/partition-function-catalog-views-transact-sql.md)
84-
85-
[Policy-Based Management Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/policy-based-management-views-transact-sql.md)
86-
87-
[Resource Governor Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/resource-governor-catalog-views-transact-sql.md)
88-
89-
[Query Store Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/query-store-catalog-views-transact-sql.md)
90-
91-
[Scalar Types Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/scalar-types-catalog-views-transact-sql.md)
92-
93-
[Schemas Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/schemas-catalog-views-sys-schemas.md)
94-
95-
[Security Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/security-catalog-views-transact-sql.md)
96-
97-
[Service Broker Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/service-broker-catalog-views-transact-sql.md)
98-
99-
[Server-wide Configuration Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/server-wide-configuration-catalog-views-transact-sql.md)
100-
80+
[Messages (for Errors) Catalog Views (Transact-SQL)](../system-catalog-views/messages-for-errors-catalog-views-sys-messages.md)
81+
82+
[Object Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md)
83+
84+
[Partition Function Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/partition-function-catalog-views-transact-sql.md)
85+
86+
[Policy-Based Management Views (Transact-SQL)](../../relational-databases/system-catalog-views/policy-based-management-views-transact-sql.md)
87+
88+
[Resource Governor Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/resource-governor-catalog-views-transact-sql.md)
89+
90+
[Query Store Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/query-store-catalog-views-transact-sql.md)
91+
92+
[Scalar Types Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/scalar-types-catalog-views-transact-sql.md)
93+
94+
[Schemas Catalog Views (Transact-SQL)](../system-catalog-views/schemas-catalog-views-sys-schemas.md)
95+
96+
[Security Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/security-catalog-views-transact-sql.md)
97+
98+
[Service Broker Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/service-broker-catalog-views-transact-sql.md)
99+
100+
[Server-wide Configuration Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/server-wide-configuration-catalog-views-transact-sql.md)
101+
101102
[Spatial Data Catalog Views](../../relational-databases/system-catalog-views/spatial-data-catalog-views.md)
102-
103+
103104
[Azure Synapse Analytics and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md)
104-
105-
[Stretch Database Catalog Views &#40;Transact-SQL&#41;](../system-catalog-views/stretch-database-catalog-views-sys-remote-data-archive-databases.md)
106-
107-
[XML Schemas &#40;XML Type System&#41; Catalog Views &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/xml-schemas-xml-type-system-catalog-views-transact-sql.md)
105+
106+
[Stretch Database Catalog Views (Transact-SQL)](../system-catalog-views/stretch-database-catalog-views-sys-remote-data-archive-databases.md)
107+
108+
[XML Schemas (XML Type System) Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/xml-schemas-xml-type-system-catalog-views-transact-sql.md)
108109
:::column-end:::
109110
:::row-end:::
110111

111-
## See Also
112+
## See also
112113

113-
- [Information Schema Views &#40;Transact-SQL&#41;](../../relational-databases/system-information-schema-views/system-information-schema-views-transact-sql.md)
114-
- [System Tables &#40;Transact-SQL&#41;](../../relational-databases/system-tables/system-tables-transact-sql.md)
114+
- [Information Schema Views (Transact-SQL)](../../relational-databases/system-information-schema-views/system-information-schema-views-transact-sql.md)
115+
- [System Tables (Transact-SQL)](../../relational-databases/system-tables/system-tables-transact-sql.md)
115116
- [Querying the SQL Server System Catalog FAQ](../../relational-databases/system-catalog-views/querying-the-sql-server-system-catalog-faq.yml)

0 commit comments

Comments
 (0)