Invoke Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The Invoke method executes the Microsoft SQL Server Agent job referenced.

Syntax

object
.Invoke()

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT Invoke();

Remarks

Use the Invokemethod to start a job. Use the Start method of the Jobobject when on-demand job execution requires a starting step restriction.

Applies To: