UseExistingConnection Property (SQL-DMO)

The UseExistingConnection property directs BulkCopy object connection behavior.

Applies To

BulkCopy Object

Syntax

object.UseExistingConnection [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

When 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.

When False (default), the BulkCopy object specifies an operation implemented using an additional, SQL-DMO-initiated connection to the source or target Microsoft® SQL Server™ installation.


Note To perform bulk copy operations using the BulkCopy object, the SQL-DMO application connection to a SQL Server installation 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.


Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetUseExistingConnection(LPBOOL pRetVal);

HRESULT SetUseExistingConnection(BOOL NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.