IF EXISTS
(
    SELECT *
    FROM dbo.sysobjects
    WHERE id = OBJECT_ID(N'[dbo].[Ti_DrugHavaleh]')
          AND OBJECTPROPERTY(id, N'IsTrigger') = 1
)
    DROP TRIGGER [dbo].[Ti_DrugHavaleh];


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]
