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

sys.views (Transact-SQL)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

Contains a row for each view object, with sys.objects.type = V.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database, Azure SQL Data Warehouse Public Preview.

Column name

Data type

Description

<inherited columns>

 

For a list of columns that this view inherits, see sys.objects (Transact-SQL)

is_replicated

bit

1 = View is replicated.

has_replication_filter

bit

1 = View has a replication filter.

has_opaque_metadata

bit

1 = VIEW_METADATA option specified for view. For more information, see CREATE VIEW (Transact-SQL).

has_unchecked_assembly_data

bit

1 = View contains persisted data that depends on an assembly whose definition changed during the last ALTER ASSEMBLY. Resets to 0 after the next successful DBCC CHECKDB or DBCC CHECKTABLE.

with_check_option

bit

1 = WITH CHECK OPTION was specified in the view definition.

is_date_correlation_view

bit

1 = View was created automatically by the system to store correlation information between datetime columns. Creation of this view was enabled by setting DATE_CORRELATION_OPTIMIZATION to ON.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Community Additions

ADD
Show:
© 2015 Microsoft