Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 How to Script Creation of Subscriber?

Author  Topic 

DBADave
Constraint Violating Yak Guru

366 Posts

Posted - 2003-09-17 : 12:00:23
From Enterprise Manager I can script replication for ALL replicated databases and the script automatically creates the following statements.

-- Adding the registered subscriber
exec sp_addsubscriber ...
exec sp_changesubscriber_schedule ...

However, if I wish to script each database separately EM does not generate the script to create the subscriber. Does anyone know of a way to generate this script without being forced to script ALL replicated databases?

Thanks, Dave

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-09-18 : 12:29:29
If you go to the publication in EM, right click on it, then script it out that way, doesn't that create the scripts for just that publication and subscription?

Tara
Go to Top of Page

DBADave
Constraint Violating Yak Guru

366 Posts

Posted - 2003-09-18 : 13:11:39
Nope. It adds a subscription to the database, but does not create the subscriber.
Go to Top of Page
   

- Advertisement -