ID -Spalte für Temp -Tabelle hinzufügen
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable
Shy Seal
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable