SQL Server проверяет, существует ли таблица температуры
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,
)