CommandOptions Property

SQL-DMO

SQL-DMO

CommandOptions Property

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

Applies To
TransArticle Object
Syntax

object.CommandOptions [= value]

object

Expression that evaluates to an object in the Applies To list

value

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. Send the stored procedure parameters in binary format when replicating commands as stored procedures for an article in a transactional publication.
SQLDMOCommandOption_IncludeInsertColumnNames 8 Include column names in destination table INSERT statements.
SQLDMOCommandOption_DTSHorizontalPartition 64 Enable Data Transformation Services (DTS) transformation servers to manage rows in horizontal partitions.

Remarks

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 reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution agent run.