What you would ideally need to do if using DTS is;
1. Use an ExecuteSQL task to create the Table/named range in Excel
2. Drop all existing transformations
3. Create your SourceSQLStatement based on your user choices
4. Recreate the transformations
5. Pump the data.
You would do all this in an Active Script task up front of the DataPump.
DTS is not very nice to you when you change the metadata.
--
----------------------------
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Trond" <trond_wahlstrom (AT) hotmail (DOT) com> wrote
Quote:
I have created this report generator where the user should be able to
export the result to an Excel file. The users can pick their own
columns from a wide range of columns and a sourcetable(report_table)
will be created every time a user choose 'Export to Excel'. Is it
possible to create a DTS task which exports my
sourcetable(report_temp) to an Excel file independent on the
tablestructure is the sourcetable?
Thanks in advance! |