bugged.be

"Think outside the [B0X]"
Icon

test whether sp exists

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[procedure]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[procedure]

Category: Dev notes, Sql

Tagged: