Skip to main content

When writing T-SQL code, we often write code to check if the database object exists first and then take some action. Is there an easier way to do this in SQL Server 2016?

-- https://www.mssqltips.com/sqlservertip/4402/new-drop-if-exists-syntax-in-sql-server-2016/