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].[sp_Create_Parvande_From_TmpDrugH]')
                    AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[sp_Create_Parvande_From_TmpDrugH]

IF EXISTS ( SELECT  *
            FROM    dbo.sysobjects
            WHERE   id = OBJECT_ID(N'[dbo].[sp_CreateParByReferDay]')
                    AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[sp_CreateParByReferDay]

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

IF EXISTS ( SELECT  *
            FROM    dbo.sysobjects
            WHERE   id = OBJECT_ID(N'[dbo].[Sp_Queue]')
                    AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[Sp_Queue]


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



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

