dbTalk Databases Forums  

Running a Package

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


Discuss Running a Package in the microsoft.public.sqlserver.dts forum.



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

Default Running a Package - 08-08-2005 , 10:59 AM






Hi,
Are there any T-SQL command for running a package or I must necessarily use
dtsrun.exe within my SPs?
Thanks in advance,
Leila



Reply With Quote
  #2  
Old   
Vikram Kamath
 
Posts: n/a

Default RE: Running a Package - 08-08-2005 , 12:22 PM






You can try using xp_cmdshell to execute dtsrun.exe from you T-SQL

for example:

exec master.dbo.xp_cmdshell 'dtsrun /S"(local)" /N"<package_name>" /A
"<global_Variable1>":"8"="<global_variable1_value> " /E'

Hope this helps

Cheers
Vikram

"Leila" wrote:

Quote:
Hi,
Are there any T-SQL command for running a package or I must necessarily use
dtsrun.exe within my SPs?
Thanks in advance,
Leila




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

Default Re: Running a Package - 08-08-2005 , 01:10 PM



Have a look here

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Leila" <Leilas (AT) hotpop (DOT) com> wrote

Quote:
Hi,
Are there any T-SQL command for running a package or I must necessarily
use
dtsrun.exe within my SPs?
Thanks in advance,
Leila





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.