CopyData Property

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

The CopyData property controls data transfer from a source to a target database.

構文

object
.CopyData [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer that specifies data handling as described in Settings

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetCopyData(
SQLDMO_COPYDATA_TYPE* pRetVal);
HRESULT SetCopyData(
SQLDMO_COPYDATA_TYPE NewValue);

Settings

Constant Value Description

SQLDMOCopyData_Append

2

Copies data. Data copied is appended to existing tables.

SQLDMOCopyData_False

0

Does not copy data. Only schema is copied.

SQLDMOCopyData_Replace

1

Copies data. Existing data is replaced by data copied.

解説

If CopyData is SQLDMOCopyData_Replace, and the DropDestObjectsFirst property is FALSE, data is removed from existing tables on the target database using a bulk-logged operation. For more information, see TRUNCATE TABLE (Transact-SQL).

Applies To:

Transfer Object

参照

関連項目

DropDestObjectsFirst Property

ヘルプおよび情報

SQL Server 2005 の参考資料の入手