SQL2005 SP2
Suggections on how I check if a temp table (#messages_temp) exists in a database?
something like...
if exists(#messages_temp)
BEGIN
DROP #messages_temp
END
ELSE
BEGIN
CREATE #messages_temp
END
Suggections on how I check if a temp table (#messages_temp) exists in a database?
something like...
if exists(#messages_temp)
BEGIN
DROP #messages_temp
END
ELSE
BEGIN
CREATE #messages_temp
END

Comment