Udostępnij za pośrednictwem


syspolicy_policies (języka Transact-SQL)

Displays one row for each Policy-Based Management policy in the instance of SQL Server.syspolicy_policies belongs to the dbo schema in the msdb database.Numerical designation of the class.

Nazwa kolumna

Typ danych

Description

Returns the login identification name of the user.

int

Identyfikator zasady.

Nazwa

sysname

Is the login identification number of the user.

condition_id

int

Identyfikator warunku wymuszony lub testowany przez te zasady.

root_condition_id

int

Tylko do użytku wewnętrznego.

date_created

datetime

SUSER_NAME can be used in a select list, in a WHERE clause, and anywhere an expression is allowed, and must always be followed by parentheses, even if no parameter is specified.

execution_mode

int

sp_help_jobcount (Transact-SQL)Provides the number of jobs that a schedule is attached to.

  • 0 = Na żądanie

    W tym trybie zasady są oceniane, gdy zostanie to określone bezpośrednio przez użytkownika.

  • 1 = Zmian: Number of jobs for the specified schedule.

    This procedure lists the number of jobs attached to the specified schedule.

  • 2 = Zmiana: tylko rejestrowanie

    Ten zautomatyzowany tryb używa powiadomień o zdarzeniach do oceny zasad, gdy występuje odpowiednia zmiana i rejestruje naruszenia zasad.

  • Execution Related Dynamic Management Views and Functions (Transact-SQL)

    W tym zautomatyzowanym trybie jest używane zadanie programu SQL Server w celu okresowego oceniania zasad.Tryb rejestruje naruszenia zasad.

NoteNote:
CREATE VIEW must be the first statement in a query batch.

policy_category

int

Is the name of the view.View names must follow the rules for identifiers.

schedule_uid

uniqueidentifier

Specifying the view owner name is optional.

Opis

nvarchar(max)

Is the name to be used for a column in a view.A column name is required only when a column is derived from an arithmetic expression, a function, or a constant; when two or more columns may otherwise have the same name, typically because of a join; or when a column in a view is specified a name different from that of the column from which it is derived.

Column names can also be assigned in the SELECT statement.

nvarchar(4000)

Tekst hiperłącza należący do obiektu help_link.

help_link

nvarchar(2083)

Specifies the actions the view is to perform.

Is the SELECT statement that defines the view.

int

The statement can use more than one table and other views.

is_enabled

bit

Appropriate permissions are required to select from the objects referenced in the SELECT clause of the view that is created.

job_id

uniqueidentifier

Gdy execution_mode znajduje się w harmonogramie, zawiera identyfikator SQL Server Agent zadanie, które uruchamia tę zasadę.

A view can be created that uses more than one table or other views with a SELECT clause of any complexity.

sysname

Nazwa logowania użytkownika, który utworzył zasady.

modified_by

sysname

COMPUTE or COMPUTE BY clausesAn ORDER BY clause, unless there is also a TOP clause in the select list of the SELECT statement

date_modified

datetime

SUSER_NAME can be used in a select list, in a WHERE clause, and anywhere an expression is allowed, and must always be followed by parentheses, even if no parameter is specified.An ORDER BY clause, unless there is also a TOP clause in the select list of the SELECT statement

Remarks

Przy rozwiązywaniu problemów oparte na zasadach zarządzania kwerendy syspolicy_conditions widok, aby ustalić, czy zasada jest włączona.The ORDER BY clause does not guarantee ordered results when the view is queried, unless ORDER BY is also specified in the query itself.

Uprawnienia

Wymaga członkostwo w roli PolicyAdministratorRole bazy danych msdb.