0

SQL Script IF EXISTS or IF OBJECT_ID IS NOT NULL

antons 4 years ago 0

Hi

When creating a SQL script, it wWould be great if there was an option to safely drop tables using pre SQL2016 TSQL...

IF OBJECT_ID('.

') IS NOT NULL

DROP TABLE .


I ask as many of our production sql servers are 2014.

Thanks