Re: Getting snapshot job_id
- From: "Darren" <deo.is@xxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 09:06:52 -0800
I don't have a syspublications table. I've looked in the database being
published, the master and msdb databases.
"Nitin" <Nitin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E0FB2C01-6166-4122-8A93-B10DC968527D@xxxxxxxxxxxxxxxx
> Select msdb.dbo.sysjobs.name from msdb.dbo.sysjobs INNER JOIN
> pubisherserver.publisherdb.dbo.syspublications
> ON (msdb.dbo.sysjobs.job_id =
> pubisherserver.publisherdb.dbo.syspublications.snapshot_jobid)
> WHERE pubisherserver.publisherdb.dbo.syspublications.name = 'Your
> publication Name'
>
> -Nitin Rana
>
>
> "Darren" wrote:
>
> > After creating a snapshot job using sp_addpublication_snapshot how do I
get
> > the job_id?
> >
> > I want to be able to rename the job as well as change the owner through
> > script after it is created but sp_update_job requires the old name or
job id
> > and sp_addpublication_snapshot doesn't return either.
> >
> > Thanks
> >
> >
> >
> >
.
- Follow-Ups:
- Re: Getting snapshot job_id
- From: Darren
- Re: Getting snapshot job_id
- References:
- Getting snapshot job_id
- From: Darren
- RE: Getting snapshot job_id
- From: Nitin
- Getting snapshot job_id
- Prev by Date: Re: POSTING IT AGAIN TO RESOLVE THE ERROR
- Next by Date: Re: Distribution agent failed
- Previous by thread: RE: Getting snapshot job_id
- Next by thread: Re: Getting snapshot job_id
- Index(es):
Relevant Pages
|