Applies To: SQL Server 2014, SQL Server 2016 Preview
Contains a row for each plan guide in the database.
Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database.
Unique identifier of the plan guide in the database.
Name of the plan guide.
Date and time the plan guide was created.
Date the plan guide was last modified.
1 = Plan guide is disabled.
0 = Plan guide is enabled.
Text of the query on which the plan guide is created.
Identifies the scope of the plan guide.
1 = OBJECT
2 = SQL
3 = TEMPLATE
Description of scope of the plan guide.
object_id of the object defining the scope of the plan guide, if the scope is OBJECT.
NULL if the plan guide is not scoped to OBJECT.
Batch text, if scope_type is SQL.
NULL if batch type is not SQL.
If NULL and scope_type is SQL, the value of query_text applies.
The string defining the list of parameters associated with the plan guide.
NULL = No parameter list is associated with the plan guide.
The OPTION clause hints associated with the plan guide.
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.