/ Published in: SQL

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
IF EXISTS ( SELECT 1 FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'p_MyProc' AND ROUTINE_SCHEMA = 'dbo' AND ROUTINE_TYPE = 'PROCEDURE' ) BEGIN DROP PROCEDURE dbo.p_MyProc PRINT 'Dropped dbo.p_MyProc' END
Comments
