The Invoke method executes the SQL Server Agent job referenced.
object.Invoke()
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Use the Invoke method to start a job, simply, on demand. Use the Start method of the Job object when on-demand job execution requires a starting step restriction.
HRESULT Invoke();