I have a script that drops a load of tables using DROP TABLE IF EXISTS, this works.
There is also a delete in this script to DELETE a row from another table that I d
For SQL Server: You could use:
IF OBJECT_ID('tablename','U') IS NOT NULL