Bulk tab
- Last Updated: April 15, 2024
- 8 minute read
- DataDirect Connectors
- ODBC
- Microsoft SQL Server 8.0
- Documentation
The Bulk tab allows you to specify DataDirect Bulk Load data source settings. On this tab, provide values for the options in the following table; then, click Apply. The fields are optional unless otherwise noted. See "Using DataDirect Bulk Load" for more information.

| Connection Options: Bulk | Description |
|---|---|
| Enable Bulk Load | Specifies the bulk load method. If enabled, the driver uses the database bulk load protocol when an application executes an INSERT with multiple rows of parameter data. If the protocol cannot be used, the driver returns a warning. If disabled, the driver uses standard parameter arrays. Default: Disabled |
| Bulk Options |
Toggles options for the bulk load process. Keep Identity - Preserves source identity values. When not enabled, identity values are assigned by the destination. Check Constraints - Checks constraints while data is being inserted. Keep Nulls - Preserves null values in the destination table regardless of the settings for default values. When not enabled, null values are replaced by column default values, where applicable. Table Lock - Assigns a table lock for the duration of the bulk copy operation. Other applications are not permitted to update the table during the copy operation. When not enabled, the default bulk locking mechanism (row or table) specified by the table lock on bulk load server option is used. Fire Triggers - Causes the server to fire the insert triggers for rows being inserted into the database. Default: Table Lock enabled |
| Field Delimiter | Specifies the character that the driver will use to delimit
the field entries in a bulk load data file. Default: None |
| Record Delimiter | Specifies the character that the driver
will use to delimit the record entries in a bulk load data file. Default: None |
| Bulk Binary Threshold |
The maximum size, in KB, of binary data that is exported to the bulk data file. If set to -1, all binary data, regardless of size, is written to the bulk data file, not to an external file. If set to 0, all binary data, regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file. If set to x, any binary data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file. Default: None |
| Batch Size | The number of rows that the driver sends to the database at a time during bulk
operations. This value applies to all methods of bulk loading. Default: 1024 |
| Bulk Character Threshold |
The maximum size, in KB, of character data that is exported to the bulk data file. If set to -1, all character data, regardless of size, is written to the bulk data file, not to an external file. If set to 0, all character data regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file. If set to x, any character data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file. Default: -1 |
| Bulk Load Threshold | Determines when the driver uses bulk load for insert, update,
delete, or batch operations. If the Enable Bulk Load option is enabled and the
number of rows affected by an insert, update, delete, or batch operation exceeds the
threshold specified by this option, the driver uses SQL Server bulk load protocol to
perform the operation. If set to 0, the driver always uses bulk load to execute insert, update, delete, or batch operations. If set to x, the driver only uses bulk load if the Enable Bulk Load option is enabled and the number of rows to be updated by an insert, update, delete, or batch operation exceeds the threshold. If the operation times out, the driver returns an error. Default: 2 |
If your application is already coded to use parameter array batch functionality, you can leverage the database bulk load protocol through the Enable Bulk Load connection option. Enabling this option automatically converts the parameter array batch operation to use the database bulk load protocol.
If you are not using parameter array batch functionality, you can export data to a bulk load data file, verify the metadata of the bulk load configuration file against the structure of the target table, and bulk load data to a table. Use the following steps to accomplish these tasks.
If you finished configuring your driver, proceed to Step 6 in "Data source configuration through a GUI (Windows)." Optionally,you can further configure your driver by clicking on the following tabs. The following sections provide details on the fields specific to each configuration tab:
- General tab allows you to configure options that are required for creating a data source.
- Advanced tab allows you to configure advanced behavior.
- Security tab allows you to specify security data source settings.
- Failover tab allows you to specify failover data source settings.
- Pooling tab allows you to specify connection pooling settings.


