nerdalert1
Programmer
I want to check if a #temp table exists at the start of a proc and then drop it if it does. Anyone know? Thanks all.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
use master
go
if exists (select * from tempdb.dbo.sysobjects where name like '#test%')
drop table #test
create table #test
(c1 int)
go