IBCPSession (OLE DB)
The IBCPSession interface exposes support for SQL Server 2005 file-based bulk copy operations. The IBCPSession interface is exposed in the SQL Native Client OLE DB provider under the same level as Sessions. In the SQL Native Client OLE DB provider, data source objects are factories for Session objects, and bulk copy operations are specified in the connection property SSPROP_ENABLEBULKCOPY. In addition, the SSPROP_ENABLEFASTLOAD property should be set to true.
Calling the IDBCreateSession::CreateSession method will then result in the creation of a BulkCopySession object. All the file-based bulk copy methods exposed through the IBCPSession object are then callable with nearly similar signatures on this IBCPSession object's IBCPSession interface.
Remarque : |
---|
The SQL Native Client OLE DB provider supports memory-based bulk copy operations through the IRowsetFastLoad interface. |
For more information about using the SQL Native Client OLE DB provider for bulk copy operations, see Performing Bulk Copy Operations.
Dans cette section
Method | Description |
---|---|
Creates a binding between program variables and SQL Server columns. |
|
Sets the number of fields that are to be bound to the columns in a SQL Server table. |
|
Sets the options for a bulk copy operation. |
|
Commits the remaining rows to be sent to SQL Server. |
|
Performs the bulk copy operation. |
|
Initializes the bulk copy structure, performs some error checking, verifies that the data and format file names are correct, and then opens them. |
|
Reads format information for each column from the format file. |
|
Writes format information for each column to the format file. |