请教前辈们一个关于临时表的问题
请教前辈们一个关于临时表的问题
例如:
CREATE procedure Stockpile
as
begin
set nocount on
if exists (select * from tempdb.dbo.sysobjects where id = object_id('tempdb..#Temp'))
drop table #Temp
select * from tw2_cust into #Temp
if exists (select * from tempdb.dbo.sysobjects where id = object_id('tempdb..#Temp'))
drop table #Temp
end
GO
如果有多个用户在同时使用某程序的此功能,会不会在sysobjects表中同时新加多条记录?
还是等某个用户的程序的此功能完成后,下一个用户的程序的此功能才开始执行?