Create 메서드
Creates a job on the instance of Microsoft SQL Server as defined by the Job object.
네임스페이스: Microsoft.SqlServer.Management.Smo.Agent
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub Create
‘사용 방법
Dim instance As Job
instance.Create()
public void Create()
public:
virtual void Create() sealed
abstract Create : unit -> unit
override Create : unit -> unit
public final function Create()
구현
예
The following code example creates a new job.
C#
Server srv = new Server("(local)");
Job jb = new Job(srv.JobServer, "Test Job");
jb.Create();
PowerShell
$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job($srv.JobServer, "Test Job")
$jb.Create()