Hilary Cotter wrote:
> Mike while your answers are completely correct for the case of snapshot
> replication - keep in mind the subject -
>
> "No replicated transactions are available" - Snapshot replication does not
> generate this message - only transactional replication does. While the
> poster seems confused as to what replication type they are using, its quite
> clear to me which one it is - and that is transactional.
>
> --
> 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 >
> "Michael Hotek" <mike@solidqualitylearning.com> wrote in message
> news:u46rMbzGGHA.2472@TK2MSFTNGP10.phx.gbl...
> > Since this is answering a question that wasn't asked, let me clear it up.
> >
> > Snapshot replication, in default configuration, wipes out the tables being
> > replicated at the subscriber and repopulates them from scratch each time
> > it runs. The scheduling configuration you have doesn't make any sense.
> > Yes, you are correct. The snapshot agent generates the snapshot. The
> > distribution agent applies it. With the snapshot agent running once per
> > day and the distribution agent running 24 times per day, you will have 1
> > snapshot pr day generated and 1/24 of the distribution agent cycles will
> > apply something to your subscribers.
> >
> > (Forget the anonymous and named subscribers crap, there is a reason this
> > was completely removed in 2005 due to the massive confusion on what it
> > really meant or what it really did.)
> >
> > Now, if you are needing data updated every hour, you shouldn't be doing
> > this with snapshot replication. You should be doing it with transactional
> > replication. A snapshot is executed to perform the initial
> > synchronization. From that point forward, incremental transactions are
> > picked up from your transaction log and written into the distribution
> > database. Then the distribution agent picks those up and applies them to
> > each subscriber. In your case, I could configure the log reader (the
> > thing moving data into the distribution database) to run continuously and
> > schedule the distribution agent to run once per hour in order to pick up
> > the last hour's worth of data and apply it incrementally to the
> > subscribers.
> >
> > --
> > Mike
> >
http://www.solidqualitylearning.com > > Disclaimer: This communication is an original work and represents my sole
> > views on the subject. It does not represent the views of any other person
> > or entity either by inference or direct reference.
> >
> > "Hilary Cotter" <hilary.cotter@gmail.com> wrote in message
> > news:O3YXnDUGGHA.1288@TK2MSFTNGP09.phx.gbl...
> >> The log reader agent will read your transaction log and construct
> >> commands which it writes to the distribution database. The distribution
> >> database then reads these commands and applies them on the subscriber.
> >>
> >> If your distribution agent is reading "no replication transactions are
> >> available", either your log reader is not reading them in the transaction
> >> log, it is stopped, or there are no transactions hitting your publication
> >> database.
> >>
> >> If you only want data updates every hour, have your distribution agent
> >> run hourly.
> >>
> >> The snapshot agent will generate scripts and data files which will be
> >> applied on the subscriber. These scripts will recreate the objects you
> >> are replicating on the subscriber, the data will make your subscriber a
> >> clone of your publisher (with some exceptions). I hope this answers your
> >> questions, if not please post back.
> >>
> >> --
> >> 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 > >>
> >> <mkerrigan@ktoys.com> wrote in message
> >> news:1137252443.744733.38970@g44g2000cwa.googlegroups.com...
> >>>
> >>> Hilary Cotter wrote:
> >>>> With anonymous subscribers the snapshot job will be run each time it is
> >>>> scheduled and it will generate a new snapshot. This can cause locking
> >>>> on
> >>>> your publication database. With named subscribers the snapshot job
> >>>> will be
> >>>> run each time it is scheduled, but it will close down unless you have a
> >>>> new
> >>>> subscriber or require a new subscription due to a reinitialization.
> >>>
> >>> But I want the data updated every hour. How can it do this if the
> >>> snapshot job is only scheduled to run once a day?
> >>>
> >>>> The distribution agent does not need a snapshot if you have done a no
> >>>> sync
> >>>> subscription. Chances are you have done a sync subscription.
> >>>
> >>> I guess I'm not fully understanding this process. If there is no
> >>> snapshot, to me it seems that no data will be updated, so what is the
> >>> distribution agent distributing? The same exact data it distributed an
> >>> hour before? This doesn't make sense to me.
> >>>
> >>
> >>
> >
> >