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


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


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


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



