Connecting Tech Pros Worldwide Forums | Help | Site Map

A dynamic table to be made into excel file

thetaamommy@gmail.com
Guest
 
Posts: n/a
#1: Nov 5 '08
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

patrick61z@yahoo.com
Guest
 
Posts: n/a
#2: Nov 7 '08

re: A dynamic table to be made into excel file


On Nov 5, 10:08 am, thetaamo...@gmail.com wrote:
Quote:
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!
Closed Thread