1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
IF object_id('tempdb..#MyTempTable') IS NOT NULL BEGIN DROP TABLE #MyTempTable END CREATE TABLE #MyTempTable ( ID int IDENTITY(1,1), SomeValue varchar(100) ) GO