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

sql server replication : Snapshot Publication sets Transactional Option at Publisher databa


hmscott
7/27/2007 12:00:02 PM
SQL 2005 (SP1, +2153)

Why does creating a Snapshot publication (with only stored procedures and
functions) set the Transactional option on the Publisher?

My intent is to create two separate publications (one Merge, the other
Snapshot). The Merge publication contains the data articles (tables) and is
horizontally filtered. The Snapshot publication is intended to be for Stored
procedures and UDFs and is not filtered.

But when I create the Snapshot publication, the Transactional publication
option is set on the publisher database. Then I get into an issue where the
log file is never truncated.

Can someone explain? Should I have created the stored procedures and
functions in a Merge publication?

Regards,

Hilary Cotter
7/28/2007 12:00:00 AM
At some levels transactional and snapshot replication are considered to be
the same, for example in sp_replicationdboptions if you want to enable a
database for snapshot or transactional replication, the parameter you pass
it the same. They also use the same activex control.

If your log is getting out of control you should try dumping it more
frequently when it is in bulk logged or full recovery models. Also check to
ensure there are no open transactions by issuing calls to dbcc opentran.

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

hmscott
7/30/2007 10:48:01 AM
Mr. Cotter,

Thank you for your response. Have I chosen the wrong replication option for
replicating the stored procedures and user functions then? Should I choose
Merge Replication for these objects instead?

As for the transaction log, it is being backed up every hour. DBCC OPENTRAN
shows no open transactions, but it does show that the last LSN replicated as
being fairly old. I removed the snapshot replication and I don't have the
example in front of me right now. But the output is similar to the following
(taken from Paul Ibison's site):

Oldest distributed LSN : (10:384:4)
Oldest non-distributed LSN : (0:0:0)

Thanks again for your time.

Regards,

hmscott

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