Is it possible to send parameters like @inputfile, @packagepath etc. to my sql job which will run my SSIS?
Currently I am configuring my path, package name in the job properties itself to run it.
I know one way is to define a command
@command = exec my_stored_procedure @parameter1 , @parameters2
and include this in the job.
But can't I do it without calling the stored procedure , directly from the job ?
Create a master package which calls all the 10 SSIS packages you want to execute. If all the packages are in same project use Project Reference
. If the packages are not in same project (or as you said different paths) use external reference
type to call them.
If you want to call all the packages dynamically irrespective of name. Create a for each loop enumerator
and call the execute package task
. In the execute package dynamically pass all the packages from SSISDB
.
Call the master package
in your SQL Server agent Job
and you are done.