You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
30
29
31
-
> [!NOTE]
30
+
> [!NOTE]
32
31
> Catalog views do not contain information about replication, backup, database maintenance plan, or [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent catalog data.
33
32
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:
35
36
36
37
- The base view contains a subset of columns and a superset of rows.
37
38
- The derived view contains a superset of columns and a subset of rows.
38
39
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.
41
42
42
43
The catalog views in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] have been organized into the following categories:
43
44
44
45
:::row:::
45
46
:::column:::
46
-
[Always On Availability Groups Catalog Views (Transact-SQL)](../../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)
[Partition Function Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/partition-function-catalog-views-transact-sql.md)
[Spatial Data Catalog Views](../../relational-databases/system-catalog-views/spatial-data-catalog-views.md)
102
-
103
+
103
104
[Azure Synapse Analytics and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md)
0 commit comments