ExecuteProcess Class
Runs an application or batch file as part of a package workflow. This class cannot be inherited.
Assembly: Microsoft.SqlServer.ExecProcTask (in Microsoft.SqlServer.ExecProcTask.dll)
Microsoft.SqlServer.Dts.Runtime::DtsObject
Microsoft.SqlServer.Dts.Runtime::Task
Microsoft.SqlServer.Dts.Tasks.ExecuteProcess::ExecuteProcess
| Name | Description | |
|---|---|---|
![]() | ExecuteProcess() | Initializes a new instance of the ExecuteProcess class. |
| Name | Description | |
|---|---|---|
![]() | Arguments | Gets or sets command prompt arguments. The string can contain multiple arguments separated by a space. |
![]() | Executable | Gets or sets the name of the Microsoft Win32 executable file or batch file to run when the package runs. |
![]() | ExecutionValue | Returns a user-defined object. This property is read-only.(Overrides Task::ExecutionValue.) |
![]() | FailTaskIfReturnCodeIsNotSuccessValue | Gets or sets a Boolean that indicates whether the task fails if the process exit code is different from the value specified in SuccessValue. |
![]() | RequireFullFileName | Gets or sets a Boolean that indicates whether the full name and extension of the task is required. |
![]() | StandardErrorVariable | Gets or sets the name of the variable used to capture the error output of the process to be run. |
![]() | StandardInputVariable | Gets or sets the name of the variable to be used as an input to the process to be run. |
![]() | StandardOutputVariable | Gets or sets the name of the variable used to capture the output of the process to be run. |
![]() | SuccessValue | Gets or sets the value returned by the executable or batch file that indicates success. |
![]() | TargetServerVersion | (Inherited from Task.) |
![]() | TerminateProcessAfterTimeOut | Gets or sets a Boolean that indicates whether the process is forced to end after the time-out period specified by the TimeOut property. |
![]() | TimeOut | Gets or sets the number of seconds that the task allows the process to run. |
![]() | Version | *** Member deprecated; see Remarks. *** Returns the version of the task. This property is read-only.(Inherited from Task.) |
![]() | WindowStyle | Gets or sets the style of the window to run the process in. |
![]() | WorkingDirectory | Gets or sets the directory in which the files specified in the Arguments property can be found. |
Although you can use the ExecuteProcess task to open any standard application, such as Microsoft Excel or Microsoft Word, you typically use it to run business applications or batch files that work against a data source.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

