Udostępnij za pośrednictwem


ReplicationDatabase.ScriptReplicationDBOption(ScriptOptions) Method

Definition

Returns a Transact-SQL script to enable or disable replication options on the database based on the properties of ReplicationDatabase.

public:
 System::String ^ ScriptReplicationDBOption(Microsoft::SqlServer::Replication::ScriptOptions scriptOption);
public string ScriptReplicationDBOption (Microsoft.SqlServer.Replication.ScriptOptions scriptOption);
member this.ScriptReplicationDBOption : Microsoft.SqlServer.Replication.ScriptOptions -> string
Public Function ScriptReplicationDBOption (scriptOption As ScriptOptions) As String

Parameters

scriptOption
ScriptOptions

A ScriptOptions object value that specifies the replication options to script.

Returns

A String value that contains the Transact-SQL script.

Remarks

The scriptOption parameter specifies what is to be included in the script. For example:

You must specify at least one of the following: Creation or Deletion.

Applies to