Greetings,
Here is the scenario: Server A is Prod, Server B is reporting or
history
Server A does Transactional replication to Server B. Server A gets
records purged at the given point of retention. So as you can tell
Server B will have much more data than Server A. Today, I get the
dreaded call of that data in server A does not seem to be at Server B.
We may have had some issues with replication a couple of weeks ago but
it appeared that they were corrected and replication has been working
fine since.
So , to my questions
Is there any way of pushing over all data on Server A to B to make
sure they are in sync without losing the older data as well?
Any good way of comparing the data in Server A to Server B without
having to go row by row through each table?
I am afraid that we may be out of synch and would like to recify it
without having to drop all replication, bcp out and then bcp back in
to get them back in sync. As you can imagine that is a major headache
and would be my last resort. Any and all ideas are welcome.
Thanks,
MM
You could also have a look at Innovartis DB Ghost at
http://www.innovartis.co.uk/ which can compare & synchronize your
database schema AND data (plus build, verify & version control). I have
found you can use SQL Enterprise Manager to generate scripts to quickly
drop & re-create replication and run DB Ghost to ship your missing rows.
John McGrath MCSE
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
Showing posts with label sync. Show all posts
Showing posts with label sync. Show all posts
Saturday, February 25, 2012
Question on Data out of sync
Labels:
database,
greetings,
microsoft,
mysql,
oracle,
orhistoryserver,
prod,
replication,
reporting,
scenario,
server,
sql,
sync,
transactional
Question on Data out of sync
I'm not too sure if it is relevant, but to ensure that
deletes on the publisher don't go to the subscriber, the
synctype is set to NONE.
To check that the data is in sync, you can use validation
(right-click on the publication and select validate
subscriptions. One option here is to use a
binary_checksum, and this is the same function you can
use to compare the publisher and subscriber tables using
linked servers in order to manually synchronize the
tables. Having said that, I'd say that most people just
reinitialize to sort out the issue.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Paul,
Could you please expand on this. I am not completely sure I understand
how to do what you are talking about. I tried looking up references to
the checksum function but could not tell how to use it to make it fit
this situation.
Thanks for the info!
MM
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Mike,
you could use
Data Compare from Red Gate. Cheap, easy and works well.
http://www.red-gate.com/SQL_Data_Compare.htm
Checksum can be used but is not 100% sure to succeed.
select * from newEmp A
Inner Join oldEmp B on
A.empId = B.empId
where checksum(a.*) <> checksum(B.*)
Rgds,
Paul Ibison
deletes on the publisher don't go to the subscriber, the
synctype is set to NONE.
To check that the data is in sync, you can use validation
(right-click on the publication and select validate
subscriptions. One option here is to use a
binary_checksum, and this is the same function you can
use to compare the publisher and subscriber tables using
linked servers in order to manually synchronize the
tables. Having said that, I'd say that most people just
reinitialize to sort out the issue.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Paul,
Could you please expand on this. I am not completely sure I understand
how to do what you are talking about. I tried looking up references to
the checksum function but could not tell how to use it to make it fit
this situation.
Thanks for the info!
MM
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Mike,
you could use
Data Compare from Red Gate. Cheap, easy and works well.
http://www.red-gate.com/SQL_Data_Compare.htm
Checksum can be used but is not 100% sure to succeed.
select * from newEmp A
Inner Join oldEmp B on
A.empId = B.empId
where checksum(a.*) <> checksum(B.*)
Rgds,
Paul Ibison
Labels:
database,
ensure,
microsoft,
mysql,
oracle,
publisher,
relevant,
server,
sql,
subscriber,
sync,
thatdeletes,
thesynctype
Subscribe to:
Posts (Atom)