Are locks taken out when querying a temp table? If so, how granular are they by default? Is there a performance hit similar to locking normal rows/table?
I assume no locks are taken because temp tables (at least as of SQL 2008) are created per instance.
select x,y,z into #MyTempTable
from SomeOtherTable