Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Neu: 14. April 2006
To bulk copy by using a format file
Allocate an environment handle and a connection handle.
Set SQL_COPT_SS_BCP and SQL_BCP_ON to enable bulk copy operations.
Connect to Microsoft® SQL Server™.
Call bcp_init to set the following information:
- The name of the table or view to bulk copy from or to.
- The name of the data file that contains the data to copy into the database or that receives data when copying from the database.
- The name of a data file to receive any bulk copy error messages (specify NULL if you do not want a message file).
- The direction of the copy: DB_IN from the file to the table or view.
Call bcp_readfmt to read the format file describing the data file to be used by the bulk copy operation.
Call bcp_exec to execute the bulk copy operation.
Siehe auch
Konzepte
Using Data Files and Format Files
Andere Ressourcen
How to: Bulk Copy with the SQL Server ODBC Driver (ODBC)