sqlskrathan
Programmer
Hi,
I like to know how to populate a sequence number for the surrogate key in MS SQL Server. I have tried with the KeyMgtGetNextValue and @INROWNUM but both didn't work correctly for surrogate key. Do we have a sequencer in MS SQL Server so that we can start the sequence and increment that value with 1 by using a trigger.
I am using DataStage7 and MS SQL Server 2000.
Shashi
I like to know how to populate a sequence number for the surrogate key in MS SQL Server. I have tried with the KeyMgtGetNextValue and @INROWNUM but both didn't work correctly for surrogate key. Do we have a sequencer in MS SQL Server so that we can start the sequence and increment that value with 1 by using a trigger.
I am using DataStage7 and MS SQL Server 2000.
Shashi