Ajouter une colonne d'ID à l'insertion de la table temporaire
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable
Shy Seal
SELECT *, IDENTITY( int ) AS idcol
INTO #newtable
FROM oldtable