dbTalk Databases Forums  

execute dts

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


Discuss execute dts in the microsoft.public.sqlserver.dts forum.



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

Default execute dts - 02-15-2005 , 06:09 PM






How to execute dts from stored procedure?

How to use xp_cmdshell to evoke dtsrun?
I have the following parameters:
dts package name="myPackage"
UserId="uid"
Password="pass"


Thank you!

Reply With Quote
  #2  
Old   
Jim Young
 
Posts: n/a

Default Re: execute dts - 02-16-2005 , 12:15 AM






Setup your DTS package as a job and the use sp_start_job to start it
running.

Jim

"she" <she (AT) discussions (DOT) microsoft.com> wrote

Quote:
How to execute dts from stored procedure?

How to use xp_cmdshell to evoke dtsrun?
I have the following parameters:
dts package name="myPackage"
UserId="uid"
Password="pass"


Thank you!



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

Default Re: execute dts - 02-16-2005 , 12:34 AM



Have a look here

Execution
(http://www.sqldts.com/default.aspx?104)



"she" <she (AT) discussions (DOT) microsoft.com> wrote

Quote:
How to execute dts from stored procedure?

How to use xp_cmdshell to evoke dtsrun?
I have the following parameters:
dts package name="myPackage"
UserId="uid"
Password="pass"


Thank you!


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

Default RE: Execute DTS - 01-23-2007 , 03:18 PM



Russel.

Where does a job step create the command line for you? Are you getting
confused with SSIS and DTExecUI?

You can do pretty much the same thing through using DTSRunUI and
generate your command line there.

There are a number of ways of executing packages in this scenario have a
look here

Execution
(http://www.sqldts.com/104.aspx)

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"RLoski" <RLoski (AT) discussions (DOT) microsoft.com> wrote


Quote:
From at stored procedure you can run xp_cmdshell. I would schedule the dts
package as a job. I would then copy the command text that it creates (note:
I would clean up the command text, but simple scheduling works for most
people). It creates a dtsrun script with an encrypted command line. Then
delete the job.

In VB, I would use a shell command to call the dtsrun command.

--
Russel Loski, MCSD.Net


"Filipe Madureira" wrote:

Hi

How can I execute a DTS from a stored procedure or by ODBC?

Thanks

Filipe Madureira


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

Default RE: Execute DTS - 01-23-2007 , 03:52 PM



Ahhhhh now I see where you are getting it from. Not really the job
creating the cmd line rather the scheduling code creating the job + step
+ cmd line.



--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"RLoski" <RLoski (AT) discussions (DOT) microsoft.com> wrote


Quote:
In Enterprise Manager, you right click on a DTS package, then click schedule
a package. It creates a job. I find that job, edit the job step that runs a
command. It creates the dtsrun command line. One can copy that text to run
in a stored procedure.
--
Russel Loski, MCSD.Net


"Allan Mitchell" wrote:

Russel.

Where does a job step create the command line for you? Are you getting
confused with SSIS and DTExecUI?

You can do pretty much the same thing through using DTSRunUI and
generate your command line there.

There are a number of ways of executing packages in this scenario have a
look here

Execution
(http://www.sqldts.com/104.aspx)

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"RLoski" <RLoski (AT) discussions (DOT) microsoft.com> wrote in message
news:48D071FD-83B6-4087-B582-95C08EF7F2AE (AT) microsoft (DOT) com:

From at stored procedure you can run xp_cmdshell. I would schedule the dts
package as a job. I would then copy the command text that it creates (note:
I would clean up the command text, but simple scheduling works for most
people). It creates a dtsrun script with an encrypted command line. Then
delete the job.

In VB, I would use a shell command to call the dtsrun command.

--
Russel Loski, MCSD.Net


"Filipe Madureira" wrote:

Hi

How can I execute a DTS from a stored procedure or by ODBC?

Thanks

Filipe Madureira




Reply With Quote
  #6  
Old   
Filipe Madureira
 
Posts: n/a

Default RE: Execute DTS - 01-24-2007 , 03:18 AM



That was it.

Thanks for your help

Filipe Madureira

"Allan Mitchell" wrote:

Quote:
Ahhhhh now I see where you are getting it from. Not really the job
creating the cmd line rather the scheduling code creating the job + step
+ cmd line.



--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"RLoski" <RLoski (AT) discussions (DOT) microsoft.com> wrote in message
news:B078080C-3289-4FCF-B23E-4B1EB321FDAA (AT) microsoft (DOT) com:

In Enterprise Manager, you right click on a DTS package, then click schedule
a package. It creates a job. I find that job, edit the job step that runs a
command. It creates the dtsrun command line. One can copy that text to run
in a stored procedure.
--
Russel Loski, MCSD.Net


"Allan Mitchell" wrote:

Russel.

Where does a job step create the command line for you? Are you getting
confused with SSIS and DTExecUI?

You can do pretty much the same thing through using DTSRunUI and
generate your command line there.

There are a number of ways of executing packages in this scenario have a
look here

Execution
(http://www.sqldts.com/104.aspx)

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




"RLoski" <RLoski (AT) discussions (DOT) microsoft.com> wrote in message
news:48D071FD-83B6-4087-B582-95C08EF7F2AE (AT) microsoft (DOT) com:

From at stored procedure you can run xp_cmdshell. I would schedule the dts
package as a job. I would then copy the command text that it creates (note:
I would clean up the command text, but simple scheduling works for most
people). It creates a dtsrun script with an encrypted command line. Then
delete the job.

In VB, I would use a shell command to call the dtsrun command.

--
Russel Loski, MCSD.Net


"Filipe Madureira" wrote:

Hi

How can I execute a DTS from a stored procedure or by ODBC?

Thanks

Filipe Madureira





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.