if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_Tmp_Over_Under_Row_TmpDrugHavaleh]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[Tmp_Over_Under_Row] DROP CONSTRAINT FK_Tmp_Over_Under_Row_TmpDrugHavaleh



IF exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_Tmp_Over_Under_Row_TmpHavaleh]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[Tmp_Over_Under_Row] DROP CONSTRAINT FK_Tmp_Over_Under_Row_TmpHavaleh


if exists(select * from sysobjects where name='Delete_Mandeh_Data')
  drop procedure Delete_Mandeh_Data

