SQL Server SELECT INTO and Blocking With Temp Tables

后端 未结 8 893
抹茶落季
抹茶落季 2020-12-13 19:08

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

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 19:59

    While SELECT INTO has been fixed from blocking the tempdb i would use caution when writing such code as under testing some system tables do get blocked.

    Reference: http://www.sqlservercentral.com/Forums/Topic1642797-2799-1.aspx

提交回复
热议问题