Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add new columns to Flat File conn in SSIS without resetting data types for existing cols

Tags:

ssis

ssis-2005

SSIS 2005

I have a flat file connection which is the result of a db dump.

New columns have been added to the file and now they need to be added to the connection manager.

There are a lot of columns and not all of them have the default dataypes

How can I make it see the additional columns without doing a full refresh, thereby causing all the datatypes to reset?

like image 675
adolf garlic Avatar asked Nov 08 '11 13:11

adolf garlic


People also ask

How do I add a column to an existing flat file in SSIS?

and it will refresh left list. You can make changes to data type property from the right panel. If you want to add new column to the middle of the column, you need to click on the double-arrow next to New to choose insertion position.

How do I add more columns in SSIS?

Derived Columns Grid Derived Column Name: Specify the derived column name. Derived Column: Select between <add new column> and <replace an existing column> options. Expression: Write the SSIS expression that produce the derived column. Data Type: This column is read-only and it shows the data type of the expression ...

Can we change data type of flat file used in a package?

You could change the output data type in the flat file connection manager in Advanced page or right click the source in Data flow , Advanced editor to change the data type before loading it.


1 Answers

Open the flat file connection manager and go to the Advanced tab.

If the new columns are appended to the end of the flat file, click New. Otherwise highlight the existing column name positioned before the new column, click the double down arrow next to the New button, and select Insert After.

Once the new column is added, you can select it and modify the properties of the column (IE Name, Datatype, Length).

like image 124
David Benham Avatar answered Oct 20 '22 11:10

David Benham