bugged.be

"Think outside the [B0X]"
Icon

Check #temp table exists

if ( object_id( 'tempdb..#test' ) is null )
-- table doesn't exist
print 'table doesnt exist'
else
-- table exists
print 'table exists'

Category: Dev notes, Sql

Tagged: