다음을 통해 공유


CommandOptions Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The CommandOptions property controls Transact-SQL statement generation and stored procedure parameter binding for data and stored procedures replicated by the referenced transactional article.

구문

object.CommandOptions [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    A long integer that specifies command generation behavior as described in Settings

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetCommandOptions(
SQLDMO_COMMANDOPTION_TYPE FAR * pRetVal);
HRESULT SetCommandOptions(
SQLDMO_COMMANDOPTION_TYPE NewValue);

Settings

Constant

Value

Description

SQLDMOCommandOption_/BinaryParameters

16

Default. This setting sends the stored procedure parameters in binary format when commands are replicated as stored procedures for an article in a transactional publication.

SQLDMOCommandOption_/DTSHorizontalPartition

64

Enables Data Transformation Services (DTS) transformation servers to manage rows in horizontal partitions.

SQLDMOCommandOption_/IncludeInsertColumnNames

8

Includes column names in destination table INSERT statements.

주의

If an application sets CommandOptions with a setting of SQLDMOCommandOption_/DTSHorizontalPartition after the initial snapshot has been created, a new snapshot must be generated and then reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution agent run.

Applies To: