Dodaj kolumnę ID do wkładki Tabela Temp
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable
Shy Seal
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable