all groups > sql server dts > june 2004 >
You're in the

sql server dts

group:

Job in a package



Re: Job in a package Narayana Vyas Kondreddi
6/28/2004 11:55:32 AM
sql server dts: You can invoke a job using msdb..sp_start_job. This stored proc can be
called from an SQL Execute task of DTS packages.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm


[quoted text, click to view]
I'm looking for a solution for my Intranet users (ASP website) to execute
jobs on my SQL Server

As I don't know all the possibilities of SQL Server, I had thought I could
do a DTS package, save it as VB source code, compile it in a .exe
application which my ASP page would execute. I've already done this for
other packages and it works well

My question is :
Is it possible to execute a job in a DTS package ? (I've not found this
option in my DTS Tasks list)

Otherwise, is there a way to create a jobset and save it as a VB source code
or maybe execute it directly from a connection object in the ASP Pages ?

Thanks for your help !
Jérémie


Job in a package Jérémie Gent
6/28/2004 12:39:55 PM
I'm looking for a solution for my Intranet users (ASP website) to execute
jobs on my SQL Server

As I don't know all the possibilities of SQL Server, I had thought I could
do a DTS package, save it as VB source code, compile it in a .exe
application which my ASP page would execute. I've already done this for
other packages and it works well

My question is :
Is it possible to execute a job in a DTS package ? (I've not found this
option in my DTS Tasks list)

Otherwise, is there a way to create a jobset and save it as a VB source code
or maybe execute it directly from a connection object in the ASP Pages ?

Thanks for your help !
Jérémie

Re: Job in a package Jérémie Gent
6/28/2004 1:19:01 PM
OK thank you very much, I'll try that
(easier would be difficult to find !)

"Narayana Vyas Kondreddi" <answer_me@hotmail.com> schrieb im Newsbeitrag
news:eMoJw5PXEHA.672@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Re: Job in a package Narayana Vyas Kondreddi
6/28/2004 1:51:04 PM
But you will have to sort out the permissions issues, around running jobs.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm


[quoted text, click to view]
OK thank you very much, I'll try that
(easier would be difficult to find !)

"Narayana Vyas Kondreddi" <answer_me@hotmail.com> schrieb im Newsbeitrag
news:eMoJw5PXEHA.672@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]


Re: Job in a package Jérémie Gent
6/29/2004 9:32:55 AM
OK it works well, thank you

A last question : is there a stored procedure which could tell if a job is
still running ?
sp_help_job gives it in current_execution_status but it's a bit complicated
for me, but if there's no other solution I'll take this one

Maybe there's a configuration in which sp_start_job would only return as
soon as the job is finished ?

Many thanks
Jérémie


"Narayana Vyas Kondreddi" <answer_me@hotmail.com> schrieb im Newsbeitrag
news:eYD9T6QXEHA.3664@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button