Say I have a table variable:
DECLARE @MyTableVar TABLE (ID INT IDENTITY(1,1), SomeData NVARCHAR(300))
After I have inserted 250 rows, I nee
Instead relying on an Identity, why not use the new ranking functions such as Row_Number
Insert @MyTableVar( Id, Value ) Select Row_Number() Over ( Order By Value ) , Value From SomeOtherTable