dbTalk Databases Forums  

Run SSIS packages within SQL Server

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


Discuss Run SSIS packages within SQL Server in the microsoft.public.sqlserver.dts forum.



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

Default Run SSIS packages within SQL Server - 08-19-2006 , 03:44 PM






Hello,

When I designed and deployed DTS packages, I often stored them in SQL Server
or in the file system and ran them from batch scripts (using DTSRun.exe) or
from ASP.NET applications (either case, most of them weren't run at the SQL
Server itself).

I was hoping I could do the same with SSIS, but it seems you can't run SSIS
packages from servers without SSIS installed, and SSIS requires a SQL Server
license... Since I'm stuck with a single SQL Server, the implications of
this is that I have to run the SSIS packages from my SQL Server.

I'm not happy about the prospect of running batch scripts and ASP.NET
applications on the SQL Server, so I was hoping there is some way I can
execute the packages using T-SQL or something similar? I need to start the
SSIS packages from batch scripts and ASP.NET applications, and I also need
to set variables in the packages before I run them...

Any suggestions? I'm interested in hearing any best practices here!
Performance-wise, I don't mind that the SQL Server needs to run the packages
itself, and I'm sure in the end, I'll find a robust and flexible way of
running the packages from within SQL Server... I just need some help getting
there :-)

Thanks!


Regards,
Nils Magnus



Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: Run SSIS packages within SQL Server - 08-20-2006 , 04:38 AM






exec xp_cmdshell 'dtexec /File c:\Packages\MyPackage.dtsx /set
\package.variables[MyVariable].Value;MyValue'

See dtexec documentation in BOL. Obviously there will be security
considerations in using xp_cmdshell.

Charles Kangai, MCT, MCDBA

"Nils Magnus" wrote:

Quote:
Hello,

When I designed and deployed DTS packages, I often stored them in SQL Server
or in the file system and ran them from batch scripts (using DTSRun.exe) or
from ASP.NET applications (either case, most of them weren't run at the SQL
Server itself).

I was hoping I could do the same with SSIS, but it seems you can't run SSIS
packages from servers without SSIS installed, and SSIS requires a SQL Server
license... Since I'm stuck with a single SQL Server, the implications of
this is that I have to run the SSIS packages from my SQL Server.

I'm not happy about the prospect of running batch scripts and ASP.NET
applications on the SQL Server, so I was hoping there is some way I can
execute the packages using T-SQL or something similar? I need to start the
SSIS packages from batch scripts and ASP.NET applications, and I also need
to set variables in the packages before I run them...

Any suggestions? I'm interested in hearing any best practices here!
Performance-wise, I don't mind that the SQL Server needs to run the packages
itself, and I'm sure in the end, I'll find a robust and flexible way of
running the packages from within SQL Server... I just need some help getting
there :-)

Thanks!


Regards,
Nils Magnus




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.