Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

sql check exists stored procedure

IF EXISTS ( SELECT * 
            FROM   sysobjects 
            WHERE  id = object_id(N'[dbo].[MyProc]') 
                   and OBJECTPROPERTY(id, N'IsProcedure') = 1 )
BEGIN
    DROP PROCEDURE [dbo].[MyProc]
END
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #check #exists #stored #procedure
ADD COMMENT
Topic
Name
5+5 =