Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


On Sql Server 2008, I have Transaction Replication going from Server1 to Server3 (with Server2 as distribution).

I have an option to "Generate Scripts" on Publication on Server1. But I do not have that option to "Generate Scripts" for Subscription on Server3.

But on a different set of servers (Server6, Server7, Server8) with replication I have options to "Generate Scripts" on both Publication and Subscription.

Both are Sql Server 2008, but the later has Sql Serve 2008 R2 on it.

Could that be the reason? How do I get around it?


Edit:Grammar, and more grammar.

share|improve this question
up vote 4 down vote accepted

Are these push subscriptions? If so, the Generate Scripts option will not be available on the subscribers. To generate scripts for push subscriptions, right-click on the Publication on Server 1 -> Generate Scripts... The generated script will contain T-SQL necessary to create the publication and the push subscriptions.

Pull subscriptions should have Generate Scripts option at the subscriber.

share|improve this answer
Okay, makes sense. I'll check it out. – UB01 Mar 28 '12 at 19:01
You are correct. It is that simple. I was thrown off by Subscription (listings) shown at both Publisher and Subscriber. Also, Generate Scripts is not visible at Subscription level at the publisher. I had to script out the entire Publication+Subscription together. But I am glad know that now. _UB – UB01 Mar 28 '12 at 19:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.