MergePublication.ScriptMergePartition(MergePartition, 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.
Generates a Transact-SQL script that can be used to re-create a Subscriber partition for publications with a parameterized row filter.
public:
System::String ^ ScriptMergePartition(Microsoft::SqlServer::Replication::MergePartition ^ mergePartition, Microsoft::SqlServer::Replication::ScriptOptions scriptOption);
public string ScriptMergePartition (Microsoft.SqlServer.Replication.MergePartition mergePartition, Microsoft.SqlServer.Replication.ScriptOptions scriptOption);
member this.ScriptMergePartition : Microsoft.SqlServer.Replication.MergePartition * Microsoft.SqlServer.Replication.ScriptOptions -> string
Public Function ScriptMergePartition (mergePartition As MergePartition, scriptOption As ScriptOptions) As String
Parameters
- mergePartition
- MergePartition
The merge partition to be scripted.
- scriptOption
- ScriptOptions
The scripting options.
Returns
The Transact-SQL script.
Remarks
The ScriptMergePartition method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.