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
You can't reseed the identity value on a Table Variable but you can do the same thing with a Temp Table:
CREATE TABLE #TAB(ID INT IDENTITY,VALUE VARCHAR(10)) DECLARE @RESEED INT = 32 DBCC CHECKIDENT(#TAB,RESEED,@RESEED) INSERT INTO #TAB SELECT 'TEST' SELECT * FROM #TAB