I have a DTS package that uses a query to export data to an Excel file. Everything works fine as long as the Excel file exists and the column names are pre-defined. What I would like to do is be able to create the Excel file during the DTS execution and define the columns based on the columns returned by the source query.
Has anybody done this?
I've created an ActiveX Script task to set the Excel file path and name based on the date the package is executed, and set the destination connection accordingly. (ex. 'Export 2004.03.30') Now I just need to know how to programatically do what the DTS designer does as your defining your destination connection file (via the create table query).
Any help on this would be greatly appreciated.
- Glen
Has anybody done this?
I've created an ActiveX Script task to set the Excel file path and name based on the date the package is executed, and set the destination connection accordingly. (ex. 'Export 2004.03.30') Now I just need to know how to programatically do what the DTS designer does as your defining your destination connection file (via the create table query).
Any help on this would be greatly appreciated.
- Glen