Answers for "sql if exists then delete"

SQL
1

t-sql drop function if exists

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
Posted by: Guest on November-19-2021

Code answers related to "sql if exists then delete"

Code answers related to "SQL"

Browse Popular Code Answers by Language