March 5, 2015 at 1:33 pm
I need to be able to see if the incoming csv file had a head row different than the previous files header row. That will tell me that I have new columns.
March 6, 2015 at 2:08 pm
ericwenger1 (3/5/2015)
I need to be able to see if the incoming csv file had a head row different than the previous files header row. That will tell me that I have new columns.
Better to post at Data Warehousing » Integration Services
March 6, 2015 at 2:15 pm
ericwenger1 (3/5/2015)
I need to be able to see if the incoming csv file had a head row different than the previous files header row. That will tell me that I have new columns.
Use a script task and use VB or C# to do the comparison.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
March 6, 2015 at 2:54 pm
ericwenger1 (3/5/2015)
I need to be able to see if the incoming csv file had a head row different than the previous files header row. That will tell me that I have new columns.
The easiest thing to do would be to just read the first row as one large blob and save it. When the next file comes along, read the header as a blob and do a direct comparison to what you've saved using either "=" or "<>". That will certainly tell you if there's been a change.
If you need to isolate the column names as rows, read the header row and split it.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply