Temp Tables and How to Drop Them from Script - SQL Server

IF OBJECT_id(N'tempdb..#MyTempTable', N'U') IS NOT NULL
    DROP TABLE #MyTempTable