Microsoft.SqlServer.BulkInsertTask 命名空间包含大容量插入任务使用的成员。 为大容量插入任务提供属性和方法,该任务是将大量数据复制到 SQL Server 表或视图的最快方法。无法继承此类。 初始化 类的新实例。 在创建任务或容器时由运行时引擎调用,并且为其传递 以便使任务能够创建、删除和检查断点的状态。此方法由运行时调用,在代码中未使用。 The breakpoint manager specific to this task. 运行大容量插入任务。 A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. The transaction object that the container is a part of. This value can be null. 初始化与该任务相关联的属性。此方法由运行时调用,在代码中未使用。 A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. A collection that contains events to be raised during execution of the task. A collection of log entries. An object reference tracker. 此方法不能由应用程序代码调用。若要加载保存为 .xml 的包,请使用 方法。 The node that contains the information to be loaded. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. 暂停后恢复执行任务。由运行时引擎恢复任务或容器。 此方法不能由应用程序代码调用。若要将包保存为 .xml,请使用 方法。 The XML document to save the information to. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. 指示可执行文件需要挂起。运行时引擎调用此方法。 验证大容量插入任务组件已正确配置。 A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. 获取或设置每批的行数。 A Long that indicates the number of rows in each batch. 获取或设置一个布尔值,该值指示是否要强制使用表和列的 check 约束。 true to enforce check constraints; false to ignore check constraints during bulk import operations. 获取或设置数据文件中数据的代码页。 A String that indicates the code page of the data in the data file. 获取或设置 枚举中的一个值,该值指示要在加载操作中使用的数据类型值。 A value from the enumeration that indicates the data-type value to use in the load operation. 获取或设置一个布尔值,该值指示任务是否应确定断点启用与否。 true if the task should determine whether breakpoints are enabled; false if the task can ignore all breakpoints. 获取或设置目标连接对象的名称。 A String that contains the name of the of the destination connection object. 获取或设置目标表或视图的名称。 A String that contains the name of the destination table or view. 获取或设置要在 char 和 widechar 数据文件中使用的字段终止符。 A String that indicates the field terminator for use in char and widechar data files. 获取或设置一个布尔值,该值指示是否应在操作过程中对表执行插入触发器。 true if the insert triggers should be executed on the table during the operation; false if triggers are ignored. 获取或设置从其开始复制的第一行。 A Long that indicates the number of the first row to load. 获取或设置格式文件的完整路径。 A String that indicates the path of the format file. 获取或设置一个布尔值,该值指定如何将导入的数据文件中的标识值用于标识列。 true if identity value or values in the imported data file should be used for the identity column. true assigns the values that are specified in the source file to the identity column; false ignores the identity-column values that are specified in the source. The default value is true. 获取或设置一个布尔值,该值指示空列在大容量加载操作期间应保留 null 值还是将默认值插入列。 true if empty columns should retain a null value during the bulk load operation; false if the specified default values should be inserted instead. 获取或设置要复制的最后一行的行号。 A Long that contains the number of the last row to copy. 获取或设置在大容量插入操作失败之前可以发生的最大错误数量。 A Long that indicates the maximum number of errors that can occur before the bulk load operation fails. 获取或设置要在 char 和 widechar 数据文件中使用的行终止符。 A String that specifies the row terminator for use in char and widechar data files. 获取或设置大容量插入语句中的 Order by 子句。 A String that contains the Order by clause used to sort the data. 获取或设置源连接对象的名称。 A String that contains the name of the source connection object. 获取包含要运行的 Transact-SQL 语句的字符串数组。 A String array that contains the Transact-SQL statement to run. 获取或设置一个布尔值,该值指示在遇到断点时任务是否应挂起。遇到断点时,将由任务和容器的运行时引擎设置该值。 true if the task suspends when it encounters a breakpoint. 获取或设置一个布尔值,该值指示是否在大容量插入操作期间锁定表。 true if you want to lock the table during the bulk insert; false if you do not want to lock it. 获取或设置一个布尔值,该值指示大容量插入任务是否使用格式文件。 true if the Bulk Insert task uses a format file. 定义提供源数据的文件类型。 字符格式(默认值)。 本机(数据库)数据类型。通过使用 bcp 实用工具从 SQL Server 大容量复制数据来创建本机数据文件。 Unicode 字符。 本机(数据库)数据类型,除了 char、varchar 和 text 列以外,这些列中的数据存储为 Unicode。通过使用 bcp 实用工具从 SQL Server 大容量复制数据来创建 widenative 数据文件。