Compartir a través de


Job Miembros

The Job class represents a Microsoft SQL Server Agent job.

El tipo Job expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico Job() () () () Initializes a new instance of the Job class.
Método publico 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.
Método publico 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

Principio

Métodos

  Nombre Descripción
Método protegido AddDatabaseContext (Se hereda de SqlSmoObject).
Método publico AddSharedSchedule Adds a shared schedule to the Microsoft SQL Server Agent job.
Método publico Alter Updates any Job object property changes on an instance of Microsoft SQL Server. 
Método protegido AlterImpl (Se hereda de SqlSmoObject).
Método protegido AlterImplFinish (Se hereda de SqlSmoObject).
Método protegido AlterImplInit (Se hereda de SqlSmoObject).
Método protegido AlterImplWorker (Se hereda de SqlSmoObject).
Método publico ApplyToTargetServer Adds a server to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
Método publico ApplyToTargetServerGroup Adds one or more servers to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
Método protegido BindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido BindRuleImpl (Se hereda de SqlSmoObject).
Método protegido CheckCollation (Se hereda de SqlSmoObject).
Método protegido CheckObjectState() () () () Validates the state of the referenced object. (Se hereda de SqlSmoObject).
Método protegido CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Se hereda de SqlSmoObject).
Método protegido CheckObjectStateImpl (Se hereda de SqlSmoObject).
Método protegido CheckVersion100 (Se hereda de SqlSmoObject).
Método protegido CheckVersion80 Checks the validity of the object on SQL Server 2000. (Se hereda de SqlSmoObject).
Método protegido CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Se hereda de SqlSmoObject).
Método protegido CheckVersion90 Check the validity of the object on SQL Server 2005. (Se hereda de SqlSmoObject).
Método protegido CheckVersionBelow90 (Se hereda de SqlSmoObject).
Método protegido CleanObject (Se hereda de SqlSmoObject).
Método publico Create Creates a job on the instance of Microsoft SQL Server as defined by the Job object.
Método protegido CreateImpl (Se hereda de SqlSmoObject).
Método protegido CreateImplFinish (Se hereda de SqlSmoObject).
Método protegido CreateImplInit (Se hereda de SqlSmoObject).
Método publico DeleteJobStepLogs(DateTime) Deletes job step log files that are older than the specified date.
Método publico DeleteJobStepLogs(Int32) Deletes job step log files that are larger that the specified log ID number.
Método publico Discover (Se hereda de SqlSmoObject).
Método publico Drop() () () () Removes an existing job.
Método publico Drop(Boolean) Removes an existing job.
Método protegido DropImpl (Se hereda de SqlSmoObject).
Método protegido DropImplWorker (Se hereda de SqlSmoObject).
Método publico EnumAlerts Enumerates a list of Agent alerts that cause automated execution of the referenced job.
Método publico EnumHistory() () () () Enumerates a list of execution history associated with the referenced job.
Método publico EnumHistory(JobHistoryFilter) Enumerates a list of execution history associated with the referenced job.
Método publico EnumJobStepLogs() () () () Enumerates a list of job step log files for the referenced job.
Método publico EnumJobStepLogs(Int32) Enumerates a list of job step log files for the job step with the specified ID value.
Método publico EnumJobStepLogs(String) Enumerates a list of job step log files for the job step with the specified name.
Método publico EnumJobStepsByID Returns an array of JobStep objects that belong to the referenced job and that are ordered by ID value.
Método protegido EnumScriptImpl (Se hereda de SqlSmoObject).
Método protegido EnumScriptImplWorker (Se hereda de SqlSmoObject).
Método publico EnumTargetServers Enumerates a list of execution target servers that have been assigned to the referenced job.
Método publico Equals (Se hereda de Object).
Método protegido Finalize (Se hereda de Object).
Método protegido FormatSqlVariant (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceFileStreamScript (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceScript (Se hereda de SqlSmoObject).
Método protegido GetBindDefaultScript (Se hereda de SqlSmoObject).
Método protegido GetBindRuleScript (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetDateTimeParameter (Se hereda de SqlSmoObject).
Método protegido GetDateTimeParameterAsInt (Se hereda de SqlSmoObject).
Método protegido GetDBName Gets the database name that is associated with the object. (Se hereda de AgentObjectBase).
Método protegido GetEnumParameter (Se hereda de SqlSmoObject).
Método protegido GetFragOptionString (Se hereda de SqlSmoObject).
Método protegido GetGuidParameter (Se hereda de SqlSmoObject).
Método publico GetHashCode (Se hereda de Object).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetPropValue (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptional (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptionalAllowNull (Se hereda de SqlSmoObject).
Método protegido GetRealValue (Se hereda de SqlSmoObject).
Método protegido GetScriptingOptionsForCreate (Se hereda de SqlSmoObject).
Método protegido GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetServerObject (Se hereda de SqlSmoObject).
Método protegido GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetTimeSpanParameterAsInt (Se hereda de SqlSmoObject).
Método publico GetType (Se hereda de Object).
Método protegido GetUrnRecursive(StringBuilder) (Se hereda de SqlSmoObject).
Método protegido GetUrnRecursive(StringBuilder, UrnIdOption) (Se hereda de SqlSmoObject).
Método protegido ImplInitialize (Se hereda de SqlSmoObject).
Método publico Initialize() () () () Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método publico Initialize(Boolean) Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método publico Invoke Runs the job.
Método protegido IsObjectDirty Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (Se hereda de SqlSmoObject).
Método protegido IsObjectInitialized Verifies whether the object has been initialized. (Se hereda de SqlSmoObject).
Método protegido IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Se hereda de SqlSmoObject).
Método protegido IsVersion80SP3 (Se hereda de SqlSmoObject).
Método protegido MarkDropped (Se hereda de SqlSmoObject).
Método protegido MarkForDropImpl (Se hereda de SqlSmoObject).
Método protegido MemberwiseClone (Se hereda de Object).
Método protegido PostAlter (Se hereda de SqlSmoObject).
Método protegido PostCreate (Se hereda de SqlSmoObject).
Método protegido PostDrop (Se hereda de SqlSmoObject).
Método publico PurgeHistory Removes system records maintaining execution history for the referenced job.
Método publico Refresh Refreshes the object and retrieves properties when the object is next accessed. (Se hereda de SqlSmoObject).
Método publico RemoveAllJobSchedules() () () () Removes all shared and unshared schedules from the job.
Método publico RemoveAllJobSchedules(Boolean) Removes all shared and unshared schedules from the job.
Método publico RemoveAllJobSteps Removes all the job steps associated with the job.
Método publico RemoveFromTargetServer Removes an execution target server from the list of target servers maintained for a job.
Método publico RemoveFromTargetServerGroup Removes a group of execution target servers from the list of target servers maintained for a job.
Método publico RemoveSharedSchedule(Int32) Removes the specified shared schedule from the job.
Método publico RemoveSharedSchedule(Int32, Boolean) Removes the specified shared schedule from the job and keeps unused schedules.
Método publico Rename Renames the job.
Método protegido RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método publico Script() () () () Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job.
Método publico 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.
Método protegido ScriptAlter (Se hereda de SqlSmoObject).
Método protegido ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido ScriptCreate (Se hereda de SqlSmoObject).
Método protegido ScriptDdl (Se hereda de SqlSmoObject).
Método protegido ScriptDrop (Se hereda de SqlSmoObject).
Método protegido ScriptImpl() () () () (Se hereda de SqlSmoObject).
Método protegido ScriptImpl(ScriptingOptions) (Se hereda de SqlSmoObject).
Método protegido ScriptImplWorker (Se hereda de SqlSmoObject).
Método protegido ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido SetParentImpl (Se hereda de SqlSmoObject).
Método publico Start() () () () Runs the referenced job.
Método publico Start(String) Runs the referenced job starting at the specified job step.
Método publico Stop Stops executing the referenced job.
Método publico ToString Returns a String that represents the referenced object. (Se hereda de SqlSmoObject).
Método protegido TouchImpl (Se hereda de SqlSmoObject).
Método protegido UnbindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido UnbindRuleImpl (Se hereda de SqlSmoObject).
Método publico Validate (Se hereda de SmoObjectBase).

Principio

Campos

  Nombre Descripción
Campo protegido m_ExtendedProperties (Se hereda de SqlSmoObject).

Principio

Propiedades

  Nombre Descripción
Propiedad pública Category Gets or sets the category to which the job belongs.
Propiedad pública CategoryID Gets the ID value that uniquely identifies the job category.
Propiedad pública CategoryType Gets or sets the type of category, with respect to local or multiserver jobs.
Propiedad pública CurrentRunRetryAttempt Gets the number of times Microsoft SQL Server Agent has attempted to run the job unsuccessfully.
Propiedad pública CurrentRunStatus Gets the current execution status of the job.
Propiedad pública CurrentRunStep Gets information about the job step that is currently running.
Propiedad pública DateCreated Gets the date and time when the job was created.
Propiedad pública DateLastModified Gets the date and time when the job was last modified.
Propiedad pública DeleteLevel Gets or sets the completion action that determines whether to delete the job definition when the job finishes execution.
Propiedad pública Description Gets or sets the textual description of the job.
Propiedad pública EmailLevel Gets or sets the completion action that determines whether to send an e-mail notification to an operator when the job finishes execution.
Propiedad pública EventLogLevel Gets or sets the completion action that determines whether to generate an operating system event log entry when the job finishes execution.
Propiedad protegida ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Se hereda de SqlSmoObject).
Propiedad pública HasSchedule Gets the Boolean property value that specifies whether the job has at least one schedule.
Propiedad pública HasServer Gets the Boolean property value that specifies whether the job has a target server assigned for multiple-server operations.
Propiedad pública HasStep Gets the Boolean property value that specifies whether the job has at least one job step.
Propiedad pública IsEnabled Gets or sets the Boolean property value that specifies whether the job is enabled.
Propiedad protegida IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Se hereda de SqlSmoObject).
Propiedad pública JobID Gets or sets the job ID value.
Propiedad pública JobSchedules Gets a collection of JobSchedule objects that represent the schedules assigned to the job.
Propiedad pública JobSteps Gets a collection of JobStep objects that represent the job steps defined for the job.
Propiedad pública JobType Gets the job type, which specifies whether the job is local or multiserver.
Propiedad pública LastRunDate Gets the date and time when the job was last run.
Propiedad pública LastRunOutcome Gets the result of the job from the last time it completed execution.
Propiedad pública Name (Invalida NamedSmoObject. . :: . .Name.)
Propiedad pública NetSendLevel Gets or sets the completion action that determines whether to net-send a notification to an operator when the job finishes execution.
Propiedad pública NextRunDate Gets the date and time when the job is next scheduled to run.
Propiedad pública NextRunScheduleID Gets the ID value of the schedule that is responsible for the next execution of the job.
Propiedad protegida ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Se hereda de SqlSmoObject).
Propiedad pública OperatorToEmail Gets or sets the operator that receives notification by e-mail when the job finishes execution.
Propiedad pública OperatorToNetSend Gets or sets the operator that receives a net-send notification when the job finishes execution.
Propiedad pública OperatorToPage Gets or sets the operator that receives a pager notification when the job finishes execution.
Propiedad pública OriginatingServer Gets the name of the server that is acting as the master server in a multiserver job.
Propiedad pública OwnerLoginName Gets or sets the owner of the job.
Propiedad pública PageLevel Gets or sets the completion action that determines whether to send a pager notification to an operator when the job finishes execution.
Propiedad pública Parent Gets or sets the JobServer object that is the parent of the Job object.
Propiedad pública Properties Gets a collection of Property objects that represent the object properties. (Se hereda de SqlSmoObject).
Propiedad protegida ScalarResult Gets the scalar result for the referenced object. (Se hereda de SqlSmoObject).
Propiedad pública StartStepID Gets or sets the ID value of the first job step in the sequence to be executed.
Propiedad pública State Gets the state of the referenced object. (Se hereda de SmoObjectBase).
Propiedad pública Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Se hereda de SqlSmoObject).
Propiedad pública UserData Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase).
Propiedad pública VersionNumber Gets a system-maintained value that is incremented every time the job is modified.

Principio

Eventos

  Nombre Descripción
Evento público PropertyChanged (Se hereda de SqlSmoObject).
Evento público PropertyMetadataChanged (Se hereda de SqlSmoObject).

Principio

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado IAlienObjectDiscover (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetParent (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetProperty (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado ISfcPropertyProviderGetPropertySet (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetUrn (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectResolve (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectSetProperty (Se hereda de SqlSmoObject).

Principio