Scripting (Replication)

Transact-SQL scripts can be used to automate repetitive tasks in configuring and maintaining replication. Nearly all replication tasks can be scripted using replication system stored procedures. All replication components in a topology should be scripted as part of a disaster recovery plan.

The following topics provide information about scripting replication: