"Hilary Cotter" <hilaryk@att.net> wrote in message
news:OAh1mWwfEHA.704@TK2MSFTNGP09.phx.gbl...
> Perhaps the SQLDMO library, DistributionPublication class,
> EnumLogReaderAgentView will give you what you are looking for.
>
> I'll try to code this tonight for you.
>
> --
> Hilary Cotter
> Looking for a book on SQL Server replication?
>
http://www.nwsu.com/0974973602.html >
>
> "Thomas Hase" <tohas@freenet.de> wrote in message
> news:411903a9.16130734@news.t-online.de...
> > On Fri, 6 Aug 2004 12:33:16 -0400, "Hilary Cotter" <hilaryk@att.net>
> > wrote:
> >
> > >May I ask why this is important to you?
> >
> > I'have written in 1997 a VB-GUI for Setup and Control a
> > Multimasterreplication with multiple Servers + Check and Datacompare
> > for MSSQL6.5-DBs. In 6.5 the given Taskname was not ignored.
> > Now I make a Port to MSSQL2k.
> > If I alter a task (schedule) in the GUI, I need the name of the Task.
> > Every Server replicates more than one DB, thats why there are more
> > than one logreader. If I want to alter a task, now I must manually
> > choose the name of the task with the logreader. Thats uncomfortable.
> >
> >
> > >
> > >I ran into similar problems getting the name of the distribution and
> > >snapshot agent outputted. But I can't think of why someone might want
the
> > >name of the log reader agent?
> > >
> > >The log reader agent name also have a subtlety. You can only have one
log
> > >reader agent per database, so SQL Server may have a very good reason
for
> > >ignoring subsequent attempts to name a log reader agent. However you
> can't
> > >even name your first log reader agent in a database.
> >
>
>