Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Calling SSIS job from stored Procedure

Author  Topic 

varalakshmi
Yak Posting Veteran

98 Posts

Posted - 2011-10-31 : 07:30:21
Hi
I have to call an SSIS job from a stored procedure.
I have to pass variable values based on which I have to change my source query.
The package also should get runtime parameter for email id to enable the package to send email.
Is it possible without using package configuration tables / files.

Thanks in advance.

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-10-31 : 07:39:39
Have a look at the dtexec statement. It allows you to set variables before the execution and can be run using xp_cmdshell.
You can also set the email ID if known at that time - otherwise retrieve it in the package.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-31 : 08:14:33
the values for variables can be passed through dtexec itself and similarly email id

see

http://geekswithblogs.net/stun/archive/2010/02/24/execute-ssis-package-from-stored-procedure-with-parameters-using-dtexec-utility.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -