Creating a Condition Based on a Facet

When you are creating conditions, the general principle includes three elements: selecting a property, an operator, and then a value. The following example walks through the steps to create a condition based on a facet which will enforce a naming standard on a table:

1. To create a condition, connect to a SQL Server 2012 instance on which you want to create a policy.

2. Launch SQL Server Management Studio (SSMS). In Object Explorer, expand the server instance, expand the Management folder, expand the Policy Management folder, and then expand the Facets folder.

3. Within the Facets folder, browse to the desired facet on which you want to create the policy (in this case, the Table facet).

4. To invoke the Create ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.