I have a report that is run regularly and put into a staging database for review. It is processed through Microsoft's SQL Server Integration Services that transforms the data; however, I'd like to add an 'ID' column that will increment as an integer each time the trending report is run but so far can't really figure out how to do this.
The goal would be not to assign a new number for each row but assign all rows from one run the same number
Ideally, it would be easier for me to do it through a derived column in SSIS than changing the SQL code around but I'll consider both options.
RunID Name
----- |----------------
1 | A
1 | B
1 | C
1 | D
2 | A
2 | B
2 | C
3 | A