Are temporary tables thread-safe?

前端 未结 9 650
清酒与你
清酒与你 2021-02-05 00:10

I\'m using SQL Server 2000, and many of the stored procedures it use temp tables extensively. The database has a lot of traffic, and I\'m concerned about the thread-safety of cr

9条回答
  •  青春惊慌失措
    2021-02-05 00:37

    Temp tables are created only in the context of the query or proc that creates them. Each new query gets a context on the database that is free of other queries' temp tables. As such, name collision is not a problem.

提交回复
热议问题