dbTalk Databases Forums  

trggering replication jobs from within a DTS package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss trggering replication jobs from within a DTS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nico
 
Posts: n/a

Default trggering replication jobs from within a DTS package - 10-11-2004 , 06:23 AM






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

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: trggering replication jobs from within a DTS package - 10-11-2004 , 12:36 PM






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

Quote:
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



Reply With Quote
  #3  
Old   
Nico
 
Posts: n/a

Default Re: trggering replication jobs from within a DTS package - 10-13-2004 , 03:47 AM



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:

Quote:
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




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: trggering replication jobs from within a DTS package - 10-13-2004 , 12:46 PM



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 (AT) discussions (DOT) microsoft.com> wrote

Quote:
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






Reply With Quote
  #5  
Old   
Uma
 
Posts: n/a

Default RE: trggering replication jobs from within a DTS package - 11-18-2004 , 07:03 PM



Hi Nico
I am not trying to provide an answer. I am trying to set up something
similar to what you have done. How do you check the completion of SP1 or a
replication job when they are part of a DTS package? Does
'completion(success\failure) of a step' really mean the acutal success or
failure of the process within that step? or does it mean the status of the
execution step?



"Nico" wrote:

Quote:
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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.