all groups > sql server replication > july 2003 >
You're in the

sql server replication

group:

what are the replication commands and transactions delivered?


what are the replication commands and transactions delivered? Hassan
7/30/2003 11:02:11 PM
sql server replication:
What is the difference between commands and transactions that are delivered
by the log reader agent to the distributor ?

Re: what are the replication commands and transactions delivered? Narayana Vyas Kondreddi
7/31/2003 8:12:25 AM
The log readers is constructing individual SQL statements and delivering
them to the distributor, wrapping them in transactions. For example, you
execute the following DELETE statement on your published table:

DELETE dbo.Titles WHERE title LIKE 'DIY:%'

The above DELETE command deletes all titles that start with 'DIY:'. If the
above DELETE statement deletes 10 rows, then log readers interprets this as
1 transaction with 10 commands. So, on the distributor it inserts one
transaction into msrepl_transactions and 10 rows into msrepl_commands
tables.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]
What is the difference between commands and transactions that are delivered
by the log reader agent to the distributor ?



Re: what are the replication commands and transactions delivered? Hassan
7/31/2003 2:45:58 PM
So what does the distributor agent for trans replication do at this point ?
Does it fire just that 1 transaction or does it fire those 10 commands i.e.
10 deletes at the subscriber ?


[quoted text, click to view]

Re: what are the replication commands and transactions delivered? Narayana Vyas Kondreddi
7/31/2003 10:52:41 PM
The distribution agent intiates a transaction on the subscriber, and
executes 10 corresponding DELETE stored procedures or statements.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]
So what does the distributor agent for trans replication do at this point ?
Does it fire just that 1 transaction or does it fire those 10 commands i.e.
10 deletes at the subscriber ?


[quoted text, click to view]



AddThis Social Bookmark Button