Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithTake a look at the ChangeMetaData node.
Depending upon how you set the options and what data you send into the 2nd pin, you can:
1) Include all columns
2) Include just some columns
3) Rename any column
4) Change the data type of any column
Generally the order of the records on the 2nd pin sets the order used for output by ChangeMetaData.
What I very commonly do is:
- use the GetMetaData node to get a list of column names
- use a Filter to setup the OldName, NewName, NewType values
- send this into the 2nd pin of ChangeMetaData
But, also in a lot of cases, I just use a StaticData node to setup the values I need instead of the GetMetaData