Re: trggering replication jobs from within a DTS package
From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 10/13/04
- Next message: Allan Mitchell: "Re: modify user account for dts connections"
- Previous message: Allan Mitchell: "Re: Data Driven Query Task and Parameterized Update"
- In reply to: Nico: "Re: trggering replication jobs from within a DTS package"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 18:46:00 +0100
Shall I tell you what I do?
I have a table on the destination server that has a trigger. I insert the
name of the job I want to start on the remote server and the trigger
concatenates this to the sp_start_job and fires the orrect job.
-- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.Konesans.com "Nico" <Nico@discussions.microsoft.com> wrote in message news:F16C2921-E935-4D09-9C8D-C51623078CB8@microsoft.com... > Thanx for the quick reply.....I got that one working....have another > problem > though..... > > I cannot execute a remote sp from an agent job. I get the folloing error. > Job 'nicotestjob' : Step 1, 'execute nicotest' : Began Executing > 2004-10-13 > 10:33:13 > Msg 7410, Sev 16: Remote access not allowed for Windows NT user activated > by > SETUSER. [SQLSTATE 42000] > > Any advice ? > > "Allan Mitchell" wrote: > >> look up sp_start_job in BOL. You could use this in an ExecuteSQL task >> >> -- >> >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) >> www.SQLDTS.com - The site for all your DTS needs. >> www.Konesans.com >> >> >> "Nico" <Nico@discussions.microsoft.com> wrote in message >> news:E181EF39-DA01-4C0A-8448-C3595EE27F2E@microsoft.com... >> > Is it possible to trigger a replication job from witin a DTS Package? >> > I want to do the following >> > execute SP1 >> > on complation >> > execute replication job 1 >> > on completion execute sp2 >> > on complation execute replication job 1 >> > oncomplation execute sp1 >> > >> > The replication job is already set up and scheduled. The reason I want >> > to >> > do this is because the different steps are dependent on each other and >> > you >> > have to be very carefull id you schedule them as you're not always sure >> > how >> > long they will execute, and they're all dependent on the complation of >> > the >> > previous job >> >> >>
- Next message: Allan Mitchell: "Re: modify user account for dts connections"
- Previous message: Allan Mitchell: "Re: Data Driven Query Task and Parameterized Update"
- In reply to: Nico: "Re: trggering replication jobs from within a DTS package"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|