SQL Server Vérifiez si la table temporaire existe
IF OBJECT_ID('tempdb..#Results') IS NOT NULL DROP TABLE #Results
Kind Kangaroo
IF OBJECT_ID('tempdb..#Results') IS NOT NULL DROP TABLE #Results
IF OBJECT_ID('tempdb..#Results') IS NOT NULL
Truncate TABLE #Results
else
CREATE TABLE #Results
(
Company CHAR(3),
StepId TINYINT,
FieldId TINYINT,
)