dbTalk Databases Forums  

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

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Question about snapshot replication and monitoring of msrepl_transactions in the dist.db in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
combfilter
 
Posts: n/a

Default Question about snapshot replication and monitoring of msrepl_transactions in the dist.db - 01-31-2006 , 11:01 AM






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
-comb

Reply With Quote
  #2  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Question about snapshot replication and monitoring of msrepl_transactions in the dist.db - 02-01-2006 , 03:45 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

"combfilter" <asdf (AT) adsf (DOT) com> wrote

Quote:
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
-comb



Reply With Quote
  #3  
Old   
combfilter
 
Posts: n/a

Default Re: Question about snapshot replication and monitoring of msrepl_transactions in the dist.db - 02-01-2006 , 10:17 AM



In article <Oq2WvQxJGHA.3064 (AT) TK2MSFTNGP10 (DOT) phx.gbl>,
hilary.cotter (AT) gmail (DOT) com says...
Quote:
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.


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?

thanks.


Reply With Quote
  #4  
Old   
gopal
 
Posts: n/a

Default Re: Question about snapshot replication and monitoring of msrepl_t - 02-01-2006 , 07:46 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' ]

"combfilter" wrote:

Quote:
In article <Oq2WvQxJGHA.3064 (AT) TK2MSFTNGP10 (DOT) phx.gbl>,
hilary.cotter (AT) gmail (DOT) com says...
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.


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?

thanks.


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.