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

SSIS Get the highest ID number and assign ID to the next records

$
0
0

Hello

I'm developing a data warehouse for a vet treatment database.

I need to assign an ID column when a Pet has stayed in Hospital.

In SSIS I need to get the max ID from the ID column, which I know how to do. I thought I would run a Max SQL script and assign it to a Variable.

How do I take that Variable and add one for each record for each Pet that has stayed in Hospital?

Regards

SQLSearcher99 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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