By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,419 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,419 IT Pros & Developers. It's quick & easy.

A dynamic table to be made into excel file

P: n/a
Hi :

I have a stored procedure which does a crosstab query and builds a
table with differing number of columns and differeing columnnames each
time.
The tablename is static, as i build same table but with differing
columns each time.
Lets call this tableA.
Now i need to get this tableA into an excel file.
So how do i use a dts 2000, to build this excel file ?
I can create a stmt to build an excel file sheet with the tableA
everchanging schema information. But in the data pump task, i
understand that the transformations are predetermined and hence i will
not be able to build a datapump task. Are there any other ways to do
this via a datapump task or something else in sql 2000.

Thank you for all your help
TAAM
Nov 5 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 5, 10:08 am, thetaamo...@gmail.com wrote:
Hi :

I have a stored procedure which does a crosstab query and builds a
table with differing number of columns and differeing columnnames each
time.
The tablename is static, as i build same table but with differing
columns each time.
Lets call this tableA.
Now i need to get this tableA into an excel file.
So how do i use a dts 2000, to build this excel file ?
I can create a stmt to build an excel file sheet with the tableA
everchanging schema information. But in the data pump task, i
understand that the transformations are predetermined and hence i will
not be able to build a datapump task. Are there any other ways to do
this via a datapump task or something else in sql 2000.

Thank you for all your help
TAAM
Why not just make your datapump task expect a view with the max number
of columns you'd ever build with anonymously named columns like
column1 through columnmax and then as your new table changes a new
view could also change lining right up with your maxed out view that
your datapump task is attached to?

Thats what I'd do!
Nov 7 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.