Home > Archive > MS SQL Server Replication > November 2006 > Distribution Agent Process









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Distribution Agent Process
dgcull

2006-11-15, 7:25 pm

Hi,

Our replication topology (currently in design) will use transactional
replication to replicate from a OLTP server (publisher) to a Reporting server
(subscriber) in hope of near realtime results. Not all of the tables require
this though and the plan would be to use snapshot replication once a day for
these less updated tables. We’re then going to use log shipping to ship
tranaction log files out to remote servers with the databases originating
from the Reporting server.

My question is what does the distribution agent do to the existing
subscriber tables when it applies the new snapshot files? I guess I’m
looking for information as to whether it TRUNCATES the table, DELETES the
data, or DROPS the table prior to importing the BCP files from the new
snapshot.

SQL 2005 SP1 exclusively will be used in this environment.

Any information would be appreciated.

Gopal Ashok[MSFT]

2006-11-16, 5:37 am

It depends on what option you set in the article property.
The property you should look for is in the article property under the
destination objects and Action if name is in use

The options, are keep data, drop table, truncate and delete filter data.

"dgcull" <dgcull@discussions.microsoft.com> wrote in message
news:4A2EAA92-0353-4E83-AAC0- 546BD5E0C5B1@microso
ft.com...
> Hi,
>
> Our replication topology (currently in design) will use transactional
> replication to replicate from a OLTP server (publisher) to a Reporting
> server
> (subscriber) in hope of near realtime results. Not all of the tables
> require
> this though and the plan would be to use snapshot replication once a day
> for
> these less updated tables. We're then going to use log shipping to ship
> tranaction log files out to remote servers with the databases originating
> from the Reporting server.
>
> My question is what does the distribution agent do to the existing
> subscriber tables when it applies the new snapshot files? I guess I'm
> looking for information as to whether it TRUNCATES the table, DELETES the
> data, or DROPS the table prior to importing the BCP files from the new
> snapshot.
>
> SQL 2005 SP1 exclusively will be used in this environment.
>
> Any information would be appreciated.
>



Paul Ibison

2006-11-16, 5:37 am

Gopal is right, but just to add - the default is to drop the existing table
on the subscriber.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com