Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Transactional Replication without snapshot replication (SQL Server 2005)?


Transactional Replication without snapshot replication (SQL Server 2005)?

Author
Message
Hridaya Thikey
Hridaya Thikey
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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.
Roy Ernest
Roy Ernest
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2686 Visits: 6860
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
noeld
noeld
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6828 Visits: 2048
You can also on a per article basis tell the the publication not to delete the data at snapshot time.


* Noel
Hridaya Thikey
Hridaya Thikey
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 50
Hi Roy,

Where can you specify that no Snapshot is needed on the Management Studio? I have failed to find this option.
Roy Ernest
Roy Ernest
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2686 Visits: 6860
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
Hridaya Thikey
Hridaya Thikey
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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
noeld
noeld
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6828 Visits: 2048
Glad you got it working!


* Noel
suresh.kumar-1086290
suresh.kumar-1086290
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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
Roy Ernest
Roy Ernest
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2686 Visits: 6860
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
lkennedy76
lkennedy76
Mr or Mrs. 500
Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)Mr or Mrs. 500 (518 reputation)

Group: General Forum Members
Points: 518 Visits: 778
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search