Table of Contents

Class PolicyBasedManagementSchema.PolicyCategory

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll

syspolicy_policy_categories (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

Displays one row for each Policy-Based Management policy category in the instance of SQL Server. Policy categories help you organize policies when you have many policies. The following table describes the columns in the syspolicy_policy_groups view.


See dbo.syspolicy_policy_categories.

[Table(Database = "msdb", Schema = "dbo", Name = "syspolicy_policy_categories", IsView = true)]
public class PolicyBasedManagementSchema.PolicyCategory
Inheritance
PolicyBasedManagementSchema.PolicyCategory
Extension Methods

Properties

MandateDatabaseSubscriptions

Indicates whether the policy category applies to all databases in an instance without an explicit subscription (1) or the policy category must be applied to a database by using an explicit subscription (0).

[Column("mandate_database_subscriptions")]
[NotNull]
public bool MandateDatabaseSubscriptions { get; set; }

Property Value

bool

Name

Name of the policy category.

[Column("name")]
[NotNull]
public string Name { get; set; }

Property Value

string

PolicyCategoryID

Identifier of the policy category.

[Column("policy_category_id")]
[NotNull]
public int PolicyCategoryID { get; set; }

Property Value

int