dbTalk Databases Forums  

variable number of columns excel files to load

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss variable number of columns excel files to load in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ilann
 
Posts: n/a

Default variable number of columns excel files to load - 01-20-2006 , 12:05 PM






Hi,

I need to load some excel files but they don't have the same number of
columns, I know which one has the max amount of columns and I created a
table that has enough columns to handle this one,

Problem is when I try to load them I get an error, how can I have dts to
automatically remap the columns when I change the source file for the excel
connection?

--Ilann



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: variable number of columns excel files to load - 01-21-2006 , 04:57 AM






Hello Ilann,


Don't you wish this was easier than it is?

You have to basically rebuild in code all the transformations yourself.
There is no way to just point one datapump between Excel and SQL Server at
any given number of Excel files of differing structures and have the pump
reconfigure itself.

What is probably happening here is that the datapump is looking for attributes
in the SourceColumns property of the transform and cannot find them.

I have an example of some auto remapping in a package if you ping me offline


Allan



Quote:
Hi,

I need to load some excel files but they don't have the same number of
columns, I know which one has the max amount of columns and I created
a table that has enough columns to handle this one,

Problem is when I try to load them I get an error, how can I have dts
to automatically remap the columns when I change the source file for
the excel connection?

--Ilann




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.