IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PV_NEW]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].[PV_NEW]