Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Transactional Replication without snapshot replication (SQL Server 2005)? Expand / Collapse
Author
Message
Posted Tuesday, March 03, 2009 2:59 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, November 23, 2010 8:38 AM
Points: 11, Visits: 50
Hi,

I have created a tranasctional replication with a number of articles and filters which takes the data from our internal database of the organisation to an external database. This is working fine since many months.

The filters are applied so that it does not overwrite certain records on some of the tables on the external database (Data is also captured on the certain external tables).

Occasianally, I do have to delete the replication when the application software is being updated. But after this when I recreate the transactional replication, it completely wipes out the external table contents and then replicates data from the internal database. As a result the data added directly on the external tables are also deleted - which I would like to preserve.

Therefore, I was just wondering if a transactional replication can be created without snapshot replication? Because it is the snapshot replication which wipes out the destination data.

Any alternative solution will also be considered.

Thanks guys.


Post #667122
Posted Tuesday, March 03, 2009 8:37 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, March 13, 2014 9:27 PM
Points: 3,283, Visits: 6,670
Yes, it can be set up with out Sanpshot. You just have to know for sure that the data is in Synch. When you set up the replication, there is an option where you can specify that no Snapshot is needed.


-Roy
Post #667329
Posted Tuesday, March 03, 2009 9:02 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Tuesday, April 01, 2014 8:03 PM
Points: 6,266, Visits: 2,027
You can also on a per article basis tell the the publication not to delete the data at snapshot time.



* Noel
Post #667360
Posted Wednesday, March 04, 2009 7:07 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, November 23, 2010 8:38 AM
Points: 11, Visits: 50
Hi Roy,

Where can you specify that no Snapshot is needed on the Management Studio? I have failed to find this option.
Post #668181
Posted Wednesday, March 04, 2009 7:34 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, March 13, 2014 9:27 PM
Points: 3,283, Visits: 6,670
Which version are you using? SQL 2000 or SQL 2005?
If 2005, in the publication wizard, when it reaches the snapshot agent section, make sure you have both the Create Snapshot and Schedule Snapshot unchecked (Ok..This is how I did it.There are others who have better knowledge than me who can say if I wrong or if there is better way to do it).
If you are running as a script, it will look like this

exec sp_addpublication @publication = N'Test', @description = N'Transactional publication of database ''Test'' from Publisher ''TestSrv''.', @sync_method = N'concurrent', @retention = 0, @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'false', @allow_subscription_copy = N'false', @add_to_active_directory = N'false', @repl_freq = N'continuous', @status = N'active', @independent_agent = N'true', @immediate_sync = N'false', @allow_sync_tran = N'false', @autogen_sync_procs = N'false', @allow_queued_tran = N'false', @allow_dts = N'false', @replicate_ddl = 1, @allow_initialize_from_backup = N'false', @enabled_for_p2p = N'false', @enabled_for_het_sub = N'false'
GO


-Roy
Post #668216
Posted Thursday, March 05, 2009 3:07 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, November 23, 2010 8:38 AM
Points: 11, Visits: 50
Hi Roy,

Yes, you can create like that but without re-initialising the subscription/running the snapshot again, data from internal to external databases does not get pushed at all.

Hi noeld
Yes, I had missed to set that option. Have done it which did the magic. (default option in sql server 2005 is to drop the table before re-synchronising.) - Thanks

Post #669029
Posted Thursday, March 05, 2009 10:33 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Tuesday, April 01, 2014 8:03 PM
Points: 6,266, Visits: 2,027
Glad you got it working!



* Noel
Post #669419
Posted Monday, June 29, 2009 7:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, December 03, 2009 9:49 AM
Points: 2, Visits: 45
Hi,

how to configure pull subscribe to publication in snapshot replication or transactional replication on sql 2005 but my servers are all stand-alone servers
please Help me ..................

this is email id : suresh.kumar@heymath.com
Post #743624
Posted Monday, June 29, 2009 8:04 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, March 13, 2014 9:27 PM
Points: 3,283, Visits: 6,670
Hi Suresh,

It is always better to start this question as a new thread. Then it will be noticed better and you could get answer more quickly. It does not matter if the Servers are standalone. You can still do replication. The only thing you have to keep in mind is that the user that is used for replication, The service account ect should be able to access network shares.
Start a new thread with more details. For example where you are getting stuck ect


-Roy
Post #743641
Posted Monday, June 29, 2009 8:32 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, March 14, 2014 10:32 AM
Points: 215, Visits: 444
Does anybody know how to replicate a DB from 2005 to 2008? It will not let me add 2008 as a subscriber? any ideas?

MCSA SQL Server 2012
Post #743668
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse