다음을 통해 공유


Performing Bulk Copy Operations (ODBC)

The ODBC standard does not directly support SQL Server bulk copy operations. When connected to an instance of SQL Server version 7.0 or later, the SQL Native Client ODBC driver supports the DB-Library functions that perform SQL Server bulk copy operations. This driver-specific extension provides an easy upgrade path for existing DB-Library applications that use bulk copy functions. The specialized bulk copy support is in the following files:

  • sqlncli.h
    Includes function prototypes and constant definitions for bulk copy functions. sqlncli.h must be included in the ODBC application performing bulk copy operations and must be in the application's include path when it is compiled.
  • sqlncli.lib
    Must be in the library path of the linker and specified as a file to be linked. sqlncli.lib is distributed with the SQL Native Client ODBC driver.
  • sqlncli.dll
    Must be present at execution time. sqlncli.dll is distributed with the SQL Native Client ODBC driver.

[!참고] The ODBC SQLBulkOperations function has no relationship to the SQL Server bulk copy functions. Applications must use the SQL Server-specific bulk-copy functions to perform bulk copy operations.

Minimally Logging Bulk Copies

With the Full Recovery model, all row-insert operations performed by bulk load are fully logged in the transaction log. For large data loads, this can cause the transaction log to fill rapidly. Under certain conditions, minimally logging is possible. Minimal logging reduces the possibility of a bulk load operation filling the log space and is also more efficient than full logging.

For information on using minimal logging, see 대량 가져오기의 최소 로깅을 위한 선행 조건.

참고 항목

개념

SQL Native Client (ODBC)

관련 자료

대량 데이터 가져오기 및 내보내기

도움말 및 정보

SQL Server 2005 지원 받기