Returns a Transact-SQL script to enable or disable replication publishing and subscriptions on the database based on the properties of ReplicationDatabase.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
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 IncludePublications to include creation scripts for all publications that belong to the database.
Use IncludePullSubscriptions to include creation scripts for all pull subscriptions that belong to the database.