all groups > sql server replication > january 2006 >
You're in the

sql server replication

group:

Question about snapshot replication and monitoring of msrepl_transactions in the dist.db


Question about snapshot replication and monitoring of msrepl_transactions in the dist.db combfilter
1/31/2006 11:01:16 AM
sql server replication:
OK.

We have this 1 publisher db that is pushing out to two separate
subscribers (one is transactional the other is snapshot). In the
distribution db the publisher_database_id is going to be the same. We
monitor this transaction count by publisher id with the following (
Select count(1) from dbo.MSrepl_transactions where
publisher_database_id = 17). Now that we have added snapshot
replication to one subscriber and transactional to another we have
noticed that this transaction count is not correct. It always says that
there are like 100+ in there waiting, but this is not true. The
transactional publications are always up to date with 0 latency.

It was my understanding that snapshot replication literally just makes a
bcp and push's it over at whatever time you tell it to push. However,
it looks like these extra transactions sitting in my distribution
database have everything to do with the snapshot replication and not the
transactional replication. Does snapshot replication work differently
then i thought? Does snapshot replication actually post transactions to
the distribution db?

Thanks
Re: Question about snapshot replication and monitoring of msrepl_transactions in the dist.db Hilary Cotter
2/1/2006 3:45:02 AM
what shows up in sp_browsereplcmds. I suspect what you will see there are
the commands which are used for the sync - i.e. to build the tables and
other objects on the subscriber, and the bcp the data there. IIRC the
distribution clean up agent does not clean these up until you are past the
retention period.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

Re: Question about snapshot replication and monitoring of msrepl_transactions in the dist.db combfilter
2/1/2006 10:17:05 AM
In article <Oq2WvQxJGHA.3064@TK2MSFTNGP10.phx.gbl>,
hilary.cotter@gmail.com says...
[quoted text, click to view]
why would the bcp data be in the distribution db? wouldn't it just push
that across the net to the subscriber straight up as a .bcp file? why
would a snapshot need to put anything in the distribution db other then
"hey you need to push this .bcp across".

ok so what you are saying is that snapshot replication DOES actually
post transactions to the distribution db? I thought it just generated
the .bcp, idx and whatever that 3rd file is and pushed those across the
net with just a few instructions on where to put them.?

sp_browsereplcmds times out for me. We have a lot of subscribers on
this box. Is there anyway I can use that sp and just look at a certain
db id?

Re: Question about snapshot replication and monitoring of msrepl_t gopal
2/1/2006 5:46:29 PM
Snapshot replication also makes use of the distribution agent to apply the
snapshot to the subscriber database. The way the snapshot replication works
is just like how snapshot is applied for transactional

When the snapshot agent runs, in both snapshot and transactional
replication, it posts sync commands into the MSrepl_commands table which the
distribution agent picks up and applies on the subscriber

These are the parameters you can use to filter the results of
sp_browsereplcmds [ [ @xact_seqno_start = ] 'xact_seqno_start' ]
[ , [ @xact_seqno_end = ] 'xact_seqno_end' ]
[ , [ @originator_id = ] 'originator_id' ]
[ , [ @publisher_database_id = ] 'publisher_database_id' ]
[ , [ @article_id = ] 'article_id' ]
[ , [ @command_id = ] command_id ]
[ , [ @results_table = ] 'results_table' ]

[quoted text, click to view]
AddThis Social Bookmark Button