Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

how to increment a column of a table while loading data into a table from flat file.

$
0
0

Hello,

I've found few question related to this and tried to implement those solutions (using vb.net code, etc) but was not successful. Please  go through my question and help me.

I am loading a sql server table from a flat file. Currently I am hard coding a column of the sql server table  with 0. Now, I want to change it to a incremental column.

Example, if I load the table today with 5 records, this column should have values 1,2,...5 and tomorrow when I load with 3 records, this column should have values 1,2,3. So, for every date, there will records starting from 1 to n.

I tried below solution which seemed very promising, but it didn't work.

http://www.sql-server-performance.com/2008/ssis-auto-increment/

This is a production issue. Any help is highly appreciated.

Thanks in advance.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>