SQL Drop Table, если существует
DROP TABLE IF EXISTS dbo.Customers
Relieved Rook
DROP TABLE IF EXISTS dbo.Customers
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;
DROP TABLE IF EXISTS dbo.Scores
IF EXISTS (
SELECT * FROM sysobjects WHERE id = object_id(N'function_name')
AND xtype IN (N'FN', N'IF', N'TF')
)
DROP FUNCTION function_name
GO
DROP TABLE IF EXISTS my_table;
IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL
DROP TABLE dbo.Scores;