﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / Variable no of Excel columns / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 05:28:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Variable no of Excel columns</title><link>http://www.sqlservercentral.com/Forums/Topic570418-148-1.aspx</link><description>Would you have any example script ?</description><pubDate>Tue, 16 Sep 2008 13:27:11 GMT</pubDate><dc:creator>RC-874851</dc:creator></item><item><title>RE: Variable no of Excel columns</title><link>http://www.sqlservercentral.com/Forums/Topic570418-148-1.aspx</link><description>SSIS does not like changing schema.You could stabilize the schema by using a second workbook that consists of a bunch of formulas that link it to the actual data you want to import.  This would allow you to create some formulas that made sure empty columns were available even if users did not enter data.  This is a pretty ugly solution though.Another option would be to use a script task in your data flow as a source.  You could then use a bit of VB to extract the data from the workbook and add it to the output buffer.  Again, this would allow you to just put NULL into the empty fields.Finally, if you wanted to expand on the last option you could write a custom data source component.  It would be nearly the same code as the script task, but if you have to reuse it it would be a bit easier.</description><pubDate>Tue, 16 Sep 2008 13:08:04 GMT</pubDate><dc:creator>Michael Earl-395764</dc:creator></item><item><title>Variable no of Excel columns</title><link>http://www.sqlservercentral.com/Forums/Topic570418-148-1.aspx</link><description>I have a spreadsheet that allows the users to enter additional column values. Meaning some users will have 16 columns and others may have 17 , 18 up to max of 20.Is there a way to build this map. I created a map with 20, then when a spreadsheet was read that only had 16 I received a error saying could not find columns 17,18,19,20Any help is appreciated.Richard</description><pubDate>Tue, 16 Sep 2008 10:14:52 GMT</pubDate><dc:creator>RC-874851</dc:creator></item></channel></rss>