all groups > sql server dts > september 2005 >
You're in the

sql server dts

group:

Importing An Excel File With Unknown Columns . . .



Importing An Excel File With Unknown Columns . . . DeniseMe
9/21/2005 7:25:06 AM
sql server dts: Hello,

I need to be able to import an excel file that has a dynamic column set. I
want to import it to a sql table that will be created new each time at the
time of import with the name of the excel file as the table name. Since the
excel file will always have a different number of columns in it to import, I
can't just set up a table or delete and recreate a table before import (since
I don't know the column names or how many there are). How do I go about
doing this in DTS? I am already using the dynamic properties and global
variable to grab the dynamic excel file name and use it in the excel
connection, but just don't know how to get dynamic transforms/create a table
each time.

Thanks,
Re: Importing An Excel File With Unknown Columns . . . Allan Mitchell
9/21/2005 7:41:13 PM
You are going to need to figure out how to get the column headings from
the Excel Spreadsheet. You may be better asking that question on an
Excel Newsgroup unless Douglas or the like comes in here. After that
and once you know the columns headings then you can dynamically build a
datapump task from this information (along with the name of the sheet)

I have an example package illustrating the latter if you ping offline


Allan

[quoted text, click to view]
Re: Importing An Excel File With Unknown Columns . . . DeniseMe
9/30/2005 8:23:02 AM
I tried to send the following to your e-mail address and it was returned to me:

Hello Allan,

I had asked a question a couple of weeks ago (9/21) about import dynamic
excel file columns. You had said you have an example package illustrating
how to build a dynamic datapump task. Is there any way I could get my hands
on that example package?? Thanks!! I haven't quite figured out the excel
side of things because this project as a priority has slipped for me, but I
am not back on it and will hopefully figure it out or have the input file
converted to a different format :o)

Thanks so much for your help!!

Thanks,

Denise
denise.meyer@firstlogic.com

Can you send me the package example to the above e-mail address?
Thanks so much!!




[quoted text, click to view]
Re: Importing An Excel File With Unknown Columns . . . Allan Mitchell
9/30/2005 5:36:29 PM
Remove the no-spam decoy.

--


----------------------------------------
Allan Mitchell (Microsoft SQL Server MVP)
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com





[quoted text, click to view]
AddThis Social Bookmark Button