![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 (AT) discussions (DOT) microsoft.com> wrote in message news:E181EF39-DA01-4C0A-8448-C3595EE27F2E (AT) microsoft (DOT) 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 |
#4
| |||
| |||
|
|
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 (AT) discussions (DOT) microsoft.com> wrote in message news:E181EF39-DA01-4C0A-8448-C3595EE27F2E (AT) microsoft (DOT) 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 |
#5
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |