So, recently a DBA is trying to tell us that we cannot use the syntax of
SELECT X, Y, Z
INTO #MyTable
FROM YourTable
To create temporary ta
SELECT INTO #temp_table holds a shema lock in tempdb for the duration of the statement because part of the work it's accomplishing is creating the table. This is fundamentally different than first creating the table using CREATE TABLE #.... and then running a set based INSERT. SELECT INTO does have advantages over INSERT, in particular the operation is minimally logged if the recovery model of the database is simple or bulked log.