Sunday, 23 October 2011

Check and remove a temporary SQL table

if OBJECT_ID('tempdb..#TEMP_DB') is not null
    drop table  #TEMP_DB;

No comments:

Post a Comment