how do I do this?
I've been getting my feet wet with DTS, but have come to something I don't know how to do. I have about sixty Excel sheets that are constantly updated, so I need to refresh a table with all of them periodically, because I don't know when they will change.
I have a package that goes out to a directory and reads the excel file names into a sql server table.
What I wanted to do was use that table to feed a global variable in a different package so that I could use it in an Active x script of a transform data task (either right in it or from the properties on an transform data task) as in 'Insert into scrubber select * from gvfilename but it only works for the default values of the gv.
I don't think I can use parameters for the Excel file names, for example in an Exec SQL task, because it looks like DTS, like TSQL, doesn't let you use database objects in variable names, so I created a global variable for the file name in a Dynamic Properties task in addition to another gv for the file type.
The package runs fine, but what I'm missing is how to change the global variable's value when its done importing the contents of the default file name, iow, it works once. Do I need some kind of ADO code in the Active X task to change the value of the gv? Are there any examples of how to do this? iow, my problem may not be so much with DTS as not knowing ADO.
thanks
|