Hi guys, I am new to SSIS. Thanks to SQLCentral it helped me in solving my daily assignments. I have a requirement I have like 10 files in a folder and many of the files have same number of column's but the excel sheet name is changing for few files many of the sheets have same name like sheet1 and some sheets have a different name so how can i dynamically load the data into same table and some sheets have extra column's which can be ignored. When i was trying to load the files with the extra columns it is giving an error saying Meta Data changed and package is failing can any of you guys help me in this.

We had a similar problem where a CSV file we get supplied either has 275 or 256 columns.

To resolve this we read in the first line of the CSV file and take the length of that line. We then replace the delimiters with nothing and take another count of the length. The difference is the number of delimters. Depending on that we branch out to one of two import steps within the SSIS package.