ReplicationDatabase.ScriptReplicationDBOption(ScriptOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
Use Creation to get the creation script.
Use Deletion to get the deletion script.
Use IncludeEnableReplicationDB to include creation scripts to enable the database for replication.
You must specify at least one of the following: Creation or Deletion.