Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask 命名空间

The ExecuteSQLTask namespace contains the ExecuteSQLTask class that enables a package to run SQL statements. The task can be configured to use result sets, making the results of the SQL statement available to other objects in the package. To use a result set, map the result set to a variable, which can then be used by other objects in the package. The task can also be configured to run parameterized queries. To provide parameter values, map the variables that contain the parameter values to the columns in the query.

Packages commonly use the functionality of the ExecuteSQLTask to perform actions on database objects, such as truncating tables, selecting rows in tables and views, or running stored procedures.

  说明
公共类 ExecuteSQLTask Contains the members used to configure and run an Execute SQL task. The Execute SQL task is used to execute SQL commands against a relational database table or view.

接口

  接口 说明
公共接口 IDTSExecuteSQL 基础结构。Defines the properties for the Execute SQL task.
公共接口 IDTSParameterBinding 基础结构。Defines the properties for the parameter binding.
公共接口 IDTSParameterBindings 基础结构。Represents a collection of IDTSParameterBinding objects.
公共接口 IDTSResultBinding 基础结构。Defines the properties for the result binding.
公共接口 IDTSResultBindings 基础结构。Represents a collection of IDTSResultBinding objects.
公共接口 IDTSSetConnectionManager 基础结构。Defines a method for setting a connection manager.

枚举

  枚举 说明
公共枚举 ParameterDirections Defines the type of the parameters available to use in the SQL statement that the Execute SQL task runs.
公共枚举 ResultSetType Defines the type of result set that the Execute SQL task can use.
公共枚举 SqlStatementSourceType Defines the location of the SqlStatementSource.
公共枚举 TypeConversionMode Defines the type conversion mode for the Execute XML Task.