Groups | Blog | Home
all groups > sql server replication > september 2007 >

sql server replication : Snapshot "after" script


José Araujo
9/13/2007 6:15:25 PM
Hi everyone,

I need to run a script in the publisher each time the snapshot is
*generated*.

Any ideas?

Thanks for the info... José Araujo.

Hilary Cotter
9/13/2007 9:46:34 PM
Use a post snapshot command.

In SQL 2000, right click on the publication, select publication properties,
and click on the Snapshot, and in the Additional scripts section, enter the
script name and path in the after applying the snapshot, execute this script
text box.

In SQl 2005, expand the replication folder, expand the local publications,
and right click on the publication and select properties, and click the
snapshot tab, and in the Run Additional Scripts section, enter the script
name and path in the after applying the snapshot, execute this script text
box.


--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

José Araujo
9/14/2007 12:00:00 AM
Hi Hilary,

Thanks for the answer, however, I understand that those scripts are going to
be run at the subscribers after applying the snapshot in the subscriber.

What I need to run is a script at the *publisher* after *generating* the
snapshot (not applying it).

Once again... thanks... José Araujo.

[quoted text, click to view]

José Araujo
9/14/2007 12:20:01 PM
BTW: what we did was to modify the snapshot scheduled jobs adding a step at
the end.

What I do not like about that solution is that scripting out the replication
(to redo it) gets more complex.

José Araujo.

[quoted text, click to view]

AddThis Social Bookmark Button