Condividi tramite


Membri Job

The Job class represents a Microsoft SQL Server Agent job.

Il tipo Job espone i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico Job() () () () Initializes a new instance of the Job class.
Metodo pubblico 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.
Metodo pubblico 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

In alto

Metodi

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

In alto

Campi

  Nome Descrizione
Campo protetto m_ExtendedProperties (Ereditato da SqlSmoObject).

In alto

Proprietà

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

In alto

Eventi

  Nome Descrizione
Evento pubblico PropertyChanged (Ereditato da SqlSmoObject).
Evento pubblico PropertyMetadataChanged (Ereditato da SqlSmoObject).

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectDiscover (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectGetParent (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectGetProperty (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato ISfcPropertyProviderGetPropertySet (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectGetUrn (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectResolve (Ereditato da SqlSmoObject).
Implementazione esplicita dell'interfacciaMetodo privato IAlienObjectSetProperty (Ereditato da SqlSmoObject).

In alto