• @Gila

    Then why this code be executed successfully.

    IF 1 <> 1

    BEGIN

    BACKUP DATABASE tempdb TO DISK ='D:\tempdb.bak'

    END