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

sql server replication : replication not working


Nick
6/26/2007 9:45:01 AM
I set up a transactional, pull publisher, distributor and subscriber last
week on a development system and all worked fine. Then, I did the same set
up on our production system and it is not working. When this was started on
Thursday night the distributor would not start. I was not here Friday so my
boss stopped replication and I did not see the error messages. I set up a
new replication subscriber last night and it looks like it did not
synchronize though I saw transactions going from the publisher to
distributor, but nothing going from the distributor.
I look in the log file viewer and see no error messages. My guess is that
the distributor is not running but I don't know how to see if it is.
I thought that I did everything the same on the production set up that I did
on development, that worked.
Paul Ibison
6/26/2007 9:58:04 AM
Nick - can you run the distribution agent from EM/SSMS and then post up the
messages you get. Also, what version of sql server are you using and are you
using updatable subscribers - it's not entirely clear from the description.
If updatable subscribers, is data being prevented from flowing in either
direction?
Just a simple check would be to see if the tables are there on the
subscriber (assuming they weren't there originally!) - this means
initalization has worked and the distribution agent has worked at least once.
If SQL Server 2005 you can use a trace flag to test the throughput is working.
HTH,
Nick
6/26/2007 10:06:13 AM
Paul,
Thanks for the quick response.
I don't know how to "run distribution from SSMS and then post up the
messages". I'm new to all this.

My publisher is SS 2000; the distributor and subscriber are 2005. I am not
doing updatable subscribers.

I starting from a subscriber database that is a previous backup of the
publisher. I look to see if the record counts, dates, etc. have changed as
they should and they have not.

How do I use this trace flag?
thanks - nick

[quoted text, click to view]
Nick
6/26/2007 11:05:02 AM
One thing to add that does look suspicious ... If I right-click on the
subscriber and select View Sync Status, the status window comes up and the
status message reads "The job succeeded ..." nad Start button is enabled. If
I click on View Job History, when the Log Viewer comes up, under Progress it
says Login failed for user 'sa'.
- nick

[quoted text, click to view]
Paul Ibison
6/26/2007 9:20:37 PM
Hi Nick - I meant tracer token not flag, but no matter - you have a SQL 2000
publisher so this is not available. Unless your database is really large,
it'll be easier to start with a blank database in this case to see if things
are working - can you set this up? If so, then initialize this database and
we'll see if the tables are transferred. If you really want to use the
backup then you can set up a nosync initialization but I'll describe that
only if you really want to go down that route - it is more complicated for a
relative beginner and relies on there being no extra changes made to the
publisher since the backup. For now I'd advise using the blank subscriber
database.....
Cheers,
Paul Ibison

Paul Ibison
6/26/2007 9:42:28 PM
Nick - do you mean the log-reader agent when you say "Log Viewer"? We'll see
a clearer picture when you simplify the topology but please ensure that all
agents use trusted security and don't run using SQL authentication for now.
HTH,
Paul Ibison

AddThis Social Bookmark Button