次の方法で共有


UseExistingConnection Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The UseExistingConnection property directs BulkCopy object connection behavior.

構文

object
.UseExistingConnection [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetUseExistingConnection(LPBOOL pRetVal);
HRESULT SetUseExistingConnection(BOOL NewValue);

解説

If TRUE, the BulkCopy object uses an application-initiated connection. The connection used is determined by the Table or View object referenced in the ImportData or ExportData method call.

If FALSE (default), the BulkCopy object specifies an operation implemented using an additional, connection initiated by SQL Distributed Management Objects (SQL-DMO) to the source or target instance of Microsoft SQL Server.

ms136920.note(ja-jp,SQL.90).gifメモ :
To perform bulk-copy operations using the BulkCopy object, the SQL-DMO application connection to an instance of SQL Server must be enabled. To enable a connection for bulk copy, set the EnableBcp property of the SQLServer object. The UseExistingConnection property of the BulkCopy object does not enable a connection for bulk-copy operations.

Applies To:

BulkCopy Object