Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2003, 08:37 AM
imalik imalik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 25 imalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 10 m 42 sec
Reputation Power: 0
Question Help needed in 2-way replication

I am using transactional replication across 2 servers and I am trying to configure one server to replicate to the other one and vice versa. My aim is to create a platform where 2 different databases can be written to and both servers will hold identical data.

My problem is that when an update occurs it seems to become stuck in a loop where the value goes back and forth from the new value to the old one, obviously replicating the value from the secondary database before updating the secondary databse with the new value. Is there anyway of stopping this?

My platform requires instant replication from both servers which was why I have opted for transactional but I question if this is the best choice if I am trying to perform 2-way replication. Any advise on this matter.

Thank you for any help offered.

Reply With Quote
  #2  
Old October 29th, 2003, 08:27 AM
imalik imalik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 25 imalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 10 m 42 sec
Reputation Power: 0
I have found the solution to my problem. To execute bidirectional replication with SQL Server 2000 do not use the wizard to create a subscription but instead make use of two stored procedures sp_addsubscriber and sp_addsubscription. Ensure that @loop_detection is enabled.

Reply With Quote
  #3  
Old October 29th, 2003, 12:30 PM
pabloj's Avatar
pabloj pabloj is online now
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,906 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 6 h 58 m 9 sec
Reputation Power: 279
You posted to the wrong forum, there is an MsSQL forum specific for SQLServer.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Help needed in 2-way replication


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT