May 11, 2012

sp_MSdroptemptable (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_MSdroptemptable(nvarchar @tname)

MetaData:

 create procedure sys.sp_MSdroptemptable (@tname sysname)  
as
begin
declare @quotedtname nvarchar(260)
select @quotedtname = quotename(@tname)

exec ('if OBJECT_ID(''tempdb..' + @quotedtname + ''') is not NULL drop table ' + @quotedtname)

if @@ERROR <> 0
return(1)

return (0)
end

No comments:

Post a Comment

Total Pageviews