문서를 영문으로 보려면 영문 확인란을 선택하세요. 마우스 포인터를 텍스트 위로 이동시켜 팝업 창에서 영문 텍스트를 표시할 수도 있습니다.
번역
영문

Job 클래스

The Job class represents a Microsoft SQL Server Agent job.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

public sealed class Job : AgentObjectBase, 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
맨 위로 이동

  이름설명
공용 속성CategoryGets or sets the category to which the job belongs.
공용 속성CategoryIDGets the ID value that uniquely identifies the job category.
공용 속성CategoryTypeGets or sets the type of category, with respect to local or multiserver jobs.
공용 속성CurrentRunRetryAttemptGets the number of times Microsoft SQL Server Agent has attempted to run the job unsuccessfully.
공용 속성CurrentRunStatusGets the current execution status of the job.
공용 속성CurrentRunStepGets information about the job step that is currently running.
공용 속성DateCreatedGets the date and time when the job was created.
공용 속성DateLastModifiedGets the date and time when the job was last modified.
공용 속성DeleteLevelGets or sets the completion action that determines whether to delete the job definition when the job finishes execution.
공용 속성DescriptionGets or sets the textual description of the job.
공용 속성EmailLevelGets or sets the completion action that determines whether to send an e-mail notification to an operator when the job finishes execution.
공용 속성EventLogLevelGets or sets the completion action that determines whether to generate an operating system event log entry when the job finishes execution.
공용 속성HasScheduleGets the Boolean property value that specifies whether the job has at least one schedule.
공용 속성HasServerGets the Boolean property value that specifies whether the job has a target server assigned for multiple-server operations.
공용 속성HasStepGets the Boolean property value that specifies whether the job has at least one job step.
공용 속성IsEnabledGets or sets the Boolean property value that specifies whether the job is enabled.
공용 속성JobIDGets the job ID value.
공용 속성JobSchedulesGets a collection of JobSchedule objects that represent the schedules assigned to the job.
공용 속성JobStepsGets a collection of JobStep objects that represent the job steps defined for the job.
공용 속성JobTypeGets the job type, which specifies whether the job is local or multiserver.
공용 속성LastRunDateGets the date and time when the job was last run.
공용 속성LastRunOutcomeGets the result of the job from the last time it completed execution.
공용 속성NameGets or sets the name of the Job. (NamedSmoObject.Name을(를) 재정의함)
공용 속성NetSendLevelGets or sets the completion action that determines whether to net-send a notification to an operator when the job finishes execution.
공용 속성NextRunDateGets the date and time when the job is next scheduled to run.
공용 속성NextRunScheduleIDGets the ID value of the schedule that is responsible for the next execution of the job.
공용 속성OperatorToEmailGets or sets the operator that receives notification by e-mail when the job finishes execution.
공용 속성OperatorToNetSendGets or sets the operator that receives a net-send notification when the job finishes execution.
공용 속성OperatorToPageGets or sets the operator that receives a pager notification when the job finishes execution.
공용 속성OriginatingServerGets the name of the server that is acting as the master server in a multiserver job.
공용 속성OwnerLoginNameGets or sets the owner of the job.
공용 속성PageLevelGets or sets the completion action that determines whether to send a pager notification to an operator when the job finishes execution.
공용 속성ParentGets or sets the JobServer object that is the parent of the Job object.
공용 속성PropertiesGets a collection of Property objects that represent the object properties. (SqlSmoObject에서 상속됨)
공용 속성StartStepIDGets or sets the ID value of the first job step in the sequence to be executed.
공용 속성StateGets the state of the referenced object. (SmoObjectBase에서 상속됨)
공용 속성UrnGets the Uniform Resource Name (URN) address value that uniquely identifies the object. (SqlSmoObject에서 상속됨)
공용 속성UserDataGets or sets user-defined data associated with the referenced object. (SmoObjectBase에서 상속됨)
공용 속성VersionNumberGets a system-maintained value that is incremented every time the job is modified.
맨 위로 이동

  이름설명
공용 메서드AddSharedScheduleAdds a shared schedule to the Microsoft SQL Server Agent job.
공용 메서드AlterUpdates any Job object property changes on an instance of Microsoft SQL Server. 
공용 메서드ApplyToTargetServerAdds a server to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
공용 메서드ApplyToTargetServerGroupAdds one or more servers to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
공용 메서드CreateCreates a job on the instance of Microsoft SQL Server as defined by the Job object.
공용 메서드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.
공용 메서드DiscoverDiscovers a list of type Object. (SqlSmoObject에서 상속됨)
공용 메서드Drop()Removes an existing job.
공용 메서드Drop(Boolean)Removes an existing job.
공용 메서드EnumAlertsEnumerates 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.
공용 메서드EnumJobStepsByIDReturns an array of JobStep objects that belong to the referenced job and that are ordered by ID value.
공용 메서드EnumTargetServersEnumerates a list of execution target servers that have been assigned to the referenced job.
공용 메서드Equals (Object에서 상속됨)
보호된 메서드FormatSqlVariantFormats an object as SqlVariant type. (SqlSmoObject에서 상속됨)
보호된 메서드GetContextDBGets the context database that is associated with this object. (SqlSmoObject에서 상속됨)
보호된 메서드GetDBNameGets the database name that is associated with the object. (AgentObjectBase에서 상속됨)
공용 메서드GetHashCode (Object에서 상속됨)
보호된 메서드GetPropValueGets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드GetPropValueOptionalGets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드GetPropValueOptionalAllowNullGets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드GetServerObjectGets the server of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
공용 메서드GetType (Object에서 상속됨)
공용 메서드Initialize()Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
공용 메서드Initialize(Boolean)Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
공용 메서드InvokeRuns the job.
보호된 메서드IsObjectInitializedVerifies whether the object has been initialized. (SqlSmoObject에서 상속됨)
보호된 메서드IsObjectInSpaceVerifies whether the object is isolated or connected to the instance of SQL Server. (SqlSmoObject에서 상속됨)
공용 메서드PurgeHistoryRemoves system records maintaining execution history for the referenced job.
공용 메서드RefreshRefreshes the object and retrieves properties when the object is next accessed. (SqlSmoObject에서 상속됨)
공용 메서드RemoveAllJobSchedules()Removes all shared and unshared schedules from the job.
공용 메서드RemoveAllJobSchedules(Boolean)Removes all unused schedules from the job.
공용 메서드RemoveAllJobStepsRemoves all the job steps associated with the job.
공용 메서드RemoveFromTargetServerRemoves an execution target server from the list of target servers maintained for a job.
공용 메서드RemoveFromTargetServerGroupRemoves 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.
공용 메서드RenameRenames the job.
공용 메서드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.
보호된 메서드SetParentImplSets the parent of the SqlSmoObject to the newParent parameter. (SqlSmoObject에서 상속됨)
공용 메서드Start()Runs the referenced job.
공용 메서드Start(String)Runs the referenced job starting at the specified job step.
공용 메서드StopStops executing the referenced job.
공용 메서드ToStringReturns a String that represents the referenced object. (SqlSmoObject에서 상속됨)
공용 메서드ValidateValidates the state of an object. (SmoObjectBase에서 상속됨)
맨 위로 이동

  이름설명
공용 이벤트PropertyChangedRepresents the event that occurs when a property is changed. (SqlSmoObject에서 상속됨)
공용 이벤트PropertyMetadataChangedRepresents the event that occurs when property metadata changes. (SqlSmoObject에서 상속됨)
맨 위로 이동

  이름설명
명시적 인터페이스 구현전용 메서드IAlienObject.DiscoverDiscovers any dependencies. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.GetDomainRootReturns the root of the domain. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.GetParentGets the parent of this object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.GetPropertyTypeGets the type of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.GetPropertyValueGets the value of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.GetUrnGets the Unified Resource Name (URN) of the object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.ResolveGets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.SetObjectStateSets the object state to the specified SfcObjectState value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드IAlienObject.SetPropertyValueSets the property value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드ISfcPropertyProvider.GetPropertySetGets the interface reference to the set of properties of this object. (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

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

커뮤니티 추가 항목

추가
표시: