August 20, 2014 at 5:40 am
This code is not working
IF OBJECT_ID('test.dbo.#temphistory') is not null
begin
drop table #temphistory
end
go
August 20, 2014 at 5:46 am
IF OBJECT_ID('tempdb..#temphistory') IS NOT NULL
DROP TABLE #temphistory
August 20, 2014 at 5:47 am
Temp tables go to tempdb not any other database
August 20, 2014 at 7:01 am
OH ..ok thanks..
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy