After having created a temporary table and declaring the data types like so;
CREATE TABLE #TempTable( ID int, Date datetime, Name char(20))
H
My way of Insert in SQL Server. Also I usually check if a temporary table exists.
Insert
IF OBJECT_ID('tempdb..#MyTable') IS NOT NULL DROP Table #MyTable SELECT b.Val as 'bVals' INTO #MyTable FROM OtherTable as b