I need some conceptual help on how to do the following:
Evaery quarter, I have 6 text files that I import into SQL SERVER(2000). The file locations will be based on the quarter and the file names will remain static. For example:
Qtr 1 2004:
path: X:\2004_q1\file1.csv
path: X:\2004_q1\file2.csv
Qtr 2 2004:
path: X:\2004_q2\file1.csv
path: X:\2004_q2\file2.csv
So, I can set up a DTS pkg to link to the csv files for qtr 1 2004, but am struggling how to change that link to hit the new directory in qtr 2 2004. For this first step, I would like the DTS to prompt me for the directory - so I input "2004_q2" and then use that input to read the files. (I can work on automating that part when I get this running).
I assume an ActiveX component can trigger an inputbox and read that input (although I've never done this) -- if so, how can I change the paths of the text files?
Thanks for your input.
Evaery quarter, I have 6 text files that I import into SQL SERVER(2000). The file locations will be based on the quarter and the file names will remain static. For example:
Qtr 1 2004:
path: X:\2004_q1\file1.csv
path: X:\2004_q1\file2.csv
Qtr 2 2004:
path: X:\2004_q2\file1.csv
path: X:\2004_q2\file2.csv
So, I can set up a DTS pkg to link to the csv files for qtr 1 2004, but am struggling how to change that link to hit the new directory in qtr 2 2004. For this first step, I would like the DTS to prompt me for the directory - so I input "2004_q2" and then use that input to read the files. (I can work on automating that part when I get this running).
I assume an ActiveX component can trigger an inputbox and read that input (although I've never done this) -- if so, how can I change the paths of the text files?
Thanks for your input.