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

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Club_GetByMobile]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[Club_GetByMobile]

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

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

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


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





