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

sql server replication : Start Transactional Replication without a Snapshot -- Help?


Ryan Hanisco
10/18/2007 2:15:06 PM
Hey everyone,

I have geographically distributed databases where I am replicating some
tables between SQL 2005 instances via a transactional push replication.
Because of the size of the DB and some network speed issues, running a
snapshot is not possible as it causes downtime.

I am 100% certain that the source and destination on these tables are
identical and I need to start the replication again without reinitializing
and sending the snapshot across the wire. I do have a copy of the source DB
that was backed up and restored on the other end of the wire that I can use
as a data reference if need be.

Please Help...

--
Ryan Hanisco
MCSE, MCTS: SQL 2005, Project+
http://www.techsterity.com
Chicago, IL

Remember: Marking helpful answers helps everyone find the info they need
Chris
10/18/2007 4:18:00 PM

Run

exec sp_addsubscription @publication = 'pubNameHere'
, @article = 'all'
, @subscriber = 'subscrNameHere'
, @destination_db = 'dbNameHere'
, @sync_type = 'none' -- this will start repl w/out snapshot
, @reserved='internal' --SQL2005
GO

Exec the following to get stored proc text for repl tables, then execute
output at subscbriber.

exec sp_scriptpublicationcustomprocs @publication = 'fxDB6_Pub1'


A backup & restore is your snapshot - I sp_addsubscr first, then backup,
ship, then restore, add sp's, then start distribution agent(s).

ChrisB MCDBA
www.MSSQLConsulting.com



[quoted text, click to view]
Hilary Cotter
10/19/2007 5:54:14 AM
Make sure you add the not for replication property to all identity column,
all constraints and all triggers.

In SQL 2005 you should use the initialize from backup option.

--
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]

AddThis Social Bookmark Button