Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

check if sql temp table exists

IF OBJECT_ID('tempdb..#Results') IS NOT NULL
    Truncate TABLE #Results
else
    CREATE TABLE #Results
    (
        Company             CHAR(3),
        StepId              TINYINT,
        FieldId             TINYINT,
    )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #sql #temp #table #exists
ADD COMMENT
Topic
Name
2+2 =