Класс Job
The Job class represents a Microsoft SQL Server Agent job.
Иерархия наследования
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo.Agent. . :: . .AgentObjectBase
Microsoft.SqlServer.Management.Smo.Agent..::..Job
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public NotInheritable Class Job _
Inherits AgentObjectBase _
Implements IAlterable, ICreatable, IDroppable, IRenamable, _
IScriptable
'Применение
Dim instance As Job
public sealed class Job : AgentObjectBase, IAlterable,
ICreatable, IDroppable, IRenamable, IScriptable
public ref class Job sealed : public AgentObjectBase,
IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
[<SealedAttribute>]
type Job =
class
inherit AgentObjectBase
interface IAlterable
interface ICreatable
interface IDroppable
interface IRenamable
interface IScriptable
end
public final class Job extends AgentObjectBase implements IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
Тип Job обеспечивает доступ к следующим элементам.
Конструкторы
| Имя | Описание | |
|---|---|---|
![]() |
Job() () () () | Initializes a new instance of the Job class. |
![]() |
Job(JobServer, String) | Initializes a new instance of the Job class on the specified instance of Microsoft SQL Server Agent and with the specified name. |
![]() |
Job(JobServer, String, Int32) | Initializes a new instance of the Job class on the specified instance of SQL Server Agent and with the specified name and category |
В начало
Свойства
| Имя | Описание | |
|---|---|---|
![]() |
Category | Gets or sets the category to which the job belongs. |
![]() |
CategoryID | Gets the ID value that uniquely identifies the job category. |
![]() |
CategoryType | Gets or sets the type of category, with respect to local or multiserver jobs. |
![]() |
CurrentRunRetryAttempt | Gets the number of times Microsoft SQL Server Agent has attempted to run the job unsuccessfully. |
![]() |
CurrentRunStatus | Gets the current execution status of the job. |
![]() |
CurrentRunStep | Gets information about the job step that is currently running. |
![]() |
DateCreated | Gets the date and time when the job was created. |
![]() |
DateLastModified | Gets the date and time when the job was last modified. |
![]() |
DeleteLevel | Gets or sets the completion action that determines whether to delete the job definition when the job finishes execution. |
![]() |
Description | Gets or sets the textual description of the job. |
![]() |
EmailLevel | Gets or sets the completion action that determines whether to send an e-mail notification to an operator when the job finishes execution. |
![]() |
EventLogLevel | Gets or sets the completion action that determines whether to generate an operating system event log entry when the job finishes execution. |
![]() |
ExecuteForScalar | Возвращает или задает значение свойства типа Boolean, указывающее, настроен ли объект для выполнения в скалярном режиме. (Производный от SqlSmoObject.) |
![]() |
HasSchedule | Gets the Boolean property value that specifies whether the job has at least one schedule. |
![]() |
HasServer | Gets the Boolean property value that specifies whether the job has a target server assigned for multiple-server operations. |
![]() |
HasStep | Gets the Boolean property value that specifies whether the job has at least one job step. |
![]() |
IsEnabled | Gets or sets the Boolean property value that specifies whether the job is enabled. |
![]() |
IsTouched | Возвращает значение свойства типа Boolean, указывающее, были ли свойства объекта обновлены, но еще не сохранены на сервере. (Производный от SqlSmoObject.) |
![]() |
JobID | Gets the job ID value. |
![]() |
JobSchedules | Gets a collection of JobSchedule objects that represent the schedules assigned to the job. |
![]() |
JobSteps | Gets a collection of JobStep objects that represent the job steps defined for the job. |
![]() |
JobType | Gets the job type, which specifies whether the job is local or multiserver. |
![]() |
LastRunDate | Gets the date and time when the job was last run. |
![]() |
LastRunOutcome | Gets the result of the job from the last time it completed execution. |
![]() |
Name | Gets or sets the name of the Job. (Переопределяет NamedSmoObject. . :: . .Name.) |
![]() |
NetSendLevel | Gets or sets the completion action that determines whether to net-send a notification to an operator when the job finishes execution. |
![]() |
NextRunDate | Gets the date and time when the job is next scheduled to run. |
![]() |
NextRunScheduleID | Gets the ID value of the schedule that is responsible for the next execution of the job. |
![]() |
ObjectInSpace | Возвращает значение свойства типа Boolean, указывающее, существует ли объект изолированно или же он явно или неявно подключен к экземпляру SQL Server. (Производный от SqlSmoObject.) |
![]() |
OperatorToEmail | Gets or sets the operator that receives notification by e-mail when the job finishes execution. |
![]() |
OperatorToNetSend | Gets or sets the operator that receives a net-send notification when the job finishes execution. |
![]() |
OperatorToPage | Gets or sets the operator that receives a pager notification when the job finishes execution. |
![]() |
OriginatingServer | Gets the name of the server that is acting as the master server in a multiserver job. |
![]() |
OwnerLoginName | Gets or sets the owner of the job. |
![]() |
PageLevel | Gets or sets the completion action that determines whether to send a pager notification to an operator when the job finishes execution. |
![]() |
Parent | Gets or sets the JobServer object that is the parent of the Job object. |
![]() |
Properties | Возвращает коллекцию объектов Property, представляющих свойства объекта. (Производный от SqlSmoObject.) |
![]() |
ScalarResult | Возвращает скалярный результат для объекта, на который ссылаются. (Производный от SqlSmoObject.) |
![]() |
StartStepID | Gets or sets the ID value of the first job step in the sequence to be executed. |
![]() |
State | Gets the state of the referenced object. (Производный от SmoObjectBase.) |
![]() |
Urn | Возвращает значение адреса универсального имени ресурса (URN), которое однозначно идентифицирует объект. (Производный от SqlSmoObject.) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.) |
![]() |
VersionNumber | Gets a system-maintained value that is incremented every time the job is modified. |
В начало
Методы
| Имя | Описание | |
|---|---|---|
![]() |
AddDatabaseContext(StringCollection) | Добавляет контекст базы данных в коллекцию запросов, определенную параметром queries. (Производный от SqlSmoObject.) |
![]() |
AddDatabaseContext(StringCollection, ScriptingOptions) | Добавляет контекст базы данных в коллекцию запросов, определяемую параметром queries при использовании указанных параметров создания скриптов. (Производный от SqlSmoObject.) |
![]() |
AddSharedSchedule | Adds a shared schedule to the Microsoft SQL Server Agent job. |
![]() |
Alter | Updates any Job object property changes on an instance of Microsoft SQL Server. |
![]() |
AlterImpl | Активирует событие изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplFinish | Метод, вызываемый при завершении события изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplInit | Метод, вызываемый при инициализации события изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplWorker | Вызывает методы изменения. (Производный от SqlSmoObject.) |
![]() |
ApplyToTargetServer | Adds a server to the list of target servers maintained for the referenced Microsoft SQL Server Agent job. |
![]() |
ApplyToTargetServerGroup | Adds one or more servers to the list of target servers maintained for the referenced Microsoft SQL Server Agent job. |
![]() |
BindDefaultImpl | Связывает элементы по умолчанию, определенные параметрами. (Производный от SqlSmoObject.) |
![]() |
BindRuleImpl | Связывает схему правил с правилом и столбцами, определенными параметрами. (Производный от SqlSmoObject.) |
![]() |
CheckCollation | Проверяет порядок параметров создания скриптов в методе сортировки, определенном параметром collationName. (Производный от SqlSmoObject.) |
![]() |
CheckObjectState() () () () | Проверяет состояние связанного объекта. (Производный от SqlSmoObject.) |
![]() |
CheckObjectState(Boolean) | Проверяет состояние связанного объекта с возможностью указать исключение, возникающее, если объект еще не создан. (Производный от SqlSmoObject.) |
![]() |
CheckObjectStateImpl | Проверяет состояние объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
CheckVersion100 | Проверяет, является ли SQL Server версией SQL Server 2008. (Производный от SqlSmoObject.) |
![]() |
CheckVersion80 | Проверяет правильность объекта в SQL Server 2000. (Производный от SqlSmoObject.) |
![]() |
CheckVersion80SP3 | Проверяет правильность объекта в SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.) |
![]() |
CheckVersion90 | Проверяет правильность объекта в SQL Server 2005. (Производный от SqlSmoObject.) |
![]() |
CheckVersionBelow90 | Проверяет, является ли SQL Server более ранней версией, чем SQL Server 2005. (Производный от SqlSmoObject.) |
![]() |
CleanObject | Устанавливает объект в неизмененное исходное состояние. (Производный от SqlSmoObject.) |
![]() |
Create | Creates a job on the instance of Microsoft SQL Server as defined by the Job object. |
![]() |
CreateImpl | Создает объект с параметрами создания скриптов. (Производный от SqlSmoObject.) |
![]() |
CreateImplFinish | Метод, вызываемый при завершении события создания. (Производный от SqlSmoObject.) |
![]() |
CreateImplInit | Метод, вызываемый при инициализации события создания. (Производный от SqlSmoObject.) |
![]() |
DeleteJobStepLogs(DateTime) | Deletes job step log files that are older than the specified date. |
![]() |
DeleteJobStepLogs(Int32) | Deletes job step log files that are larger that the specified log ID number. |
![]() |
Discover | Находит список типа Object. (Производный от SqlSmoObject.) |
![]() |
Drop() () () () | Removes an existing job. |
![]() |
Drop(Boolean) | Removes an existing job. |
![]() |
DropImpl | Удаляет объект SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
DropImplWorker | Вызывает методы удаления. (Производный от SqlSmoObject.) |
![]() |
EnumAlerts | Enumerates a list of Agent alerts that cause automated execution of the referenced job. |
![]() |
EnumHistory() () () () | Enumerates a list of execution history associated with the referenced job. |
![]() |
EnumHistory(JobHistoryFilter) | Enumerates a list of execution history associated with the referenced job. |
![]() |
EnumJobStepLogs() () () () | Enumerates a list of job step log files for the referenced job. |
![]() |
EnumJobStepLogs(Int32) | Enumerates a list of job step log files for the job step with the specified ID value. |
![]() |
EnumJobStepLogs(String) | Enumerates a list of job step log files for the job step with the specified name. |
![]() |
EnumJobStepsByID | Returns an array of JobStep objects that belong to the referenced job and that are ordered by ID value. |
![]() |
EnumScriptImpl | Перечисляет сценарии, заданные параметром so. (Производный от SqlSmoObject.) |
![]() |
EnumScriptImplWorker | Вызывает методы, перечисляющие заданные параметром so сценарии. (Производный от SqlSmoObject.) |
![]() |
EnumScriptImplWorkerSOChanged | Возвращает строку IEnumerable, описывающую параметры создания скриптов объекта. (Производный от SqlSmoObject.) |
![]() |
EnumTargetServers | Enumerates a list of execution target servers that have been assigned to the referenced job. |
![]() |
Equals | (Производный от Object.) |
![]() |
ExecuteNonQuery | (Производный от SqlSmoObject.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
FormatSqlVariant | Форматирует объект как имеющий тип SqlVariant. (Производный от SqlSmoObject.) |
![]() |
GenerateDataSpaceFileStreamScript | Формирует скрипт, создающий файл данных. (Производный от SqlSmoObject.) |
![]() |
GenerateDataSpaceScript | Формирует скрипт, выделяющий пространство в файле данных. (Производный от SqlSmoObject.) |
![]() |
GetBindDefaultScript | Возвращает скрипт, привязывающий значения по умолчанию, определенные параметрами defSchema и defName. (Производный от SqlSmoObject.) |
![]() |
GetBindRuleScript | Возвращает скрипт, указывающий правила привязки. (Производный от SqlSmoObject.) |
![]() |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает свойство типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetDateTimeParameter | Назначает свойство типа datetime объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetDateTimeParameterAsInt | Назначает свойство типа datetime объекта SqlSmoObject в виде целочисленного значения, если свойство типа datetime не равно NULL. (Производный от SqlSmoObject.) |
![]() |
GetDBName | Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. Gets the database name that is associated with the object. (Производный от AgentObjectBase.) |
![]() |
GetEnumParameter | Назначает свойство перечисления SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetFragOptionString | Возвращает объект FragmentationOption в виде строкового значения. (Производный от SqlSmoObject.) |
![]() |
GetGuidParameter | Назначает свойство Guid объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValue | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptional | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptionalAllowNull | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetRealValue | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetScriptingOptionsForCreate | Возвращает параметры ScriptingOptions объектаSqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetServerName | Возвращает имя экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.) |
![]() |
GetServerObject | Возвращает сервер объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetSqlServerVersionName | Возвращает имя версии экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.) |
![]() |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetTimeSpanParameterAsInt | Назначает параметр временного диапазона объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetType | (Производный от Object.) |
![]() |
GetUrnRecursive(StringBuilder) | Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetUrnRecursive(StringBuilder, UrnIdOption) | Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ImplInitialize | Инициализирует поля объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
Initialize() () () () | Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.) |
![]() |
Initialize(Boolean) | Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.) |
![]() |
Invoke | Runs the job. |
![]() |
IsObjectDirty | Проверяет, было ли изменено свойство объекта, еще не сохраненное в экземпляре SQL Server. (Производный от SqlSmoObject.) |
![]() |
IsObjectInitialized | Проверяет, был ли объект инициализирован. (Производный от SqlSmoObject.) |
![]() |
IsObjectInSpace | Проверяет, является ли объект изолированным или подключенным к экземпляру SQL Server. (Производный от SqlSmoObject.) |
![]() |
IsVersion80SP3 | Определяет, является ли SQL Server версией SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.) |
![]() |
IsVersion90AndAbove | Определяет, является ли SQL Server версией SQL Server 2005 или более поздней. (Производный от SqlSmoObject.) |
![]() |
MarkDropped | Устанавливает состояние SqlSmoState для удаления. (Производный от SqlSmoObject.) |
![]() |
MarkForDropImpl | Устанавливает состояние SqlSmoState для удаления. (Производный от SqlSmoObject.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
PostAlter | Метод, активируемый после изменения SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
PostCreate | Метод, активируемый после создания SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
PostDrop | Метод, активируемый после удаления SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
PurgeHistory | Removes system records maintaining execution history for the referenced job. |
![]() |
Refresh | Обновляет объект и извлекает свойства объекта при следующем обращении. (Производный от SqlSmoObject.) |
![]() |
RemoveAllJobSchedules() () () () | Removes all shared and unshared schedules from the job. |
![]() |
RemoveAllJobSchedules(Boolean) | Removes all unused schedules from the job. |
![]() |
RemoveAllJobSteps | Removes all the job steps associated with the job. |
![]() |
RemoveFromTargetServer | Removes an execution target server from the list of target servers maintained for a job. |
![]() |
RemoveFromTargetServerGroup | Removes a group of execution target servers from the list of target servers maintained for a job. |
![]() |
RemoveSharedSchedule(Int32) | Removes the specified shared schedule from the job. |
![]() |
RemoveSharedSchedule(Int32, Boolean) | Removes the specified shared schedule from the job and keeps unused schedules. |
![]() |
Rename | Renames the job. |
![]() |
RenameImpl | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.) |
![]() |
RenameImplWorker | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.) |
![]() |
Script() () () () | Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job. |
![]() |
Script(ScriptingOptions) | Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job as specified by the scripting options. |
![]() |
ScriptAlter | Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.) |
![]() |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.) |
![]() |
ScriptCreate | Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.) |
![]() |
ScriptDdl | Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.) |
![]() |
ScriptDrop | Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.) |
![]() |
ScriptImpl() () () () | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptImpl(ScriptingOptions) | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptImplWorker | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptOwner | Alters the script owner authorization. (Производный от NamedSmoObject.) |
![]() |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.) |
![]() |
SetParentImpl | Устанавливает родительский объект объекта SqlSmoObject в значение параметра newParent. (Производный от SqlSmoObject.) |
![]() |
SetSchemaOwned | Sets the schema owned value. (Производный от NamedSmoObject.) |
![]() |
Start() () () () | Runs the referenced job. |
![]() |
Start(String) | Runs the referenced job starting at the specified job step. |
![]() |
Stop | Stops executing the referenced job. |
![]() |
ToString | Возвращает String, представляющее объект, на который ссылаются. (Производный от SqlSmoObject.) |
![]() |
TouchImpl | Не реализовано. (Производный от SqlSmoObject.) |
![]() |
UnbindDefaultImpl | Отменяет привязку столбцов по умолчанию для объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
UnbindRuleImpl | Отменяет привязку правил для объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
Validate | Validates the state of an object. (Производный от SmoObjectBase.) |
В начало
События
| Имя | Описание | |
|---|---|---|
![]() |
PropertyChanged | Представляет событие, возникающее при изменении свойства. (Производный от SqlSmoObject.) |
![]() |
PropertyMetadataChanged | Представляет событие, возникающее при изменении метаданных свойства. (Производный от SqlSmoObject.) |
В начало
Поля
| Имя | Описание | |
|---|---|---|
![]() |
m_ExtendedProperties | Представляет свойство, определенное для расширения свойств, предоставляемых объектом SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
singletonParent | Представляет единственного родителя. (Производный от SqlSmoObject.) |
В начало
Явные реализации интерфейса
| Имя | Описание | |
|---|---|---|
![]() ![]() |
IAlienObject. . :: . .Discover | Находит любые зависимости. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetDomainRoot | Возвращает корневой элемент домена. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetParent | Возвращает родительский объект для данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetPropertyType | Возвращает тип указанного свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetPropertyValue | Возвращает значение указанного свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetUrn | Возвращает универсальное имя ресурса для объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .Resolve | Возвращает экземпляр, содержащий данные об объекте из универсального имени ресурса для объекта. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .SetObjectState | Задает состоянию объекта указанное значение SfcObjectState. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .SetPropertyValue | Устанавливает значение свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
ISfcPropertyProvider. . :: . .GetPropertySet | Возвращает ссылку на интерфейс для набора свойств данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
В начало
Замечания
To get or set Job object properties, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be the owner of the job, or be a member of the sysadmin fixed server role.
To create a job, users must be a member of the SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole database roles on the MSDB database, or be a member of the sysadmin fixed server role.
To drop a job, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be the owner of the job, or be a member of the sysadmin fixed server role.
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)