May 4, 2009 at 12:47 am
hi der,
i have a ssis package which imports data from a mdb file to SQL Table.
Is der any way to programmatically change the source file path in the package.
Like, say i've created a package which imports data from d:/someFile.mdb to a SQL Table.
now how can i change the path "d:/someFile.mdb" to something else as per req.
kindly help
May 4, 2009 at 4:07 am
Look for Package Configurations in Books Online
--Ramesh
August 21, 2012 at 6:52 pm
As the other user suggested, this can be achieved easily through Configurations (inside your package).
So basically :
1)Create a variable (say FILE_LOC of datatype string)
Put the path in that variable ie assign the variable a value = your path.
2) 'Expressionize' your file connection manager ie In the properties of your file connection manager, go to expressions(click the ellipsis in expresiiosn) and set the expression as the variable created in step above.
3) Create a config file(you can also keep your package configs in database btw). Export this variable to a config file.
Now when you deploy your package to a diff env, just change the value of the said variable in the config file. The package should pick the path from the cofig file.
Hopw this helps.
Regards
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply