MSSQL create temporary table

if object_id('tempdb..#mytable') is not null drop table #mytable
select * from existingtable
into #mytable