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].[ClubMemberShipDrug]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[ClubMemberShipDrug]

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

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

Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'Tbl_ScoreClub'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'FactorGuid')
  Alter Table dbo.Tbl_ScoreClub Add FactorGuid UNIQUEIDENTIFIER


Select @Id = Id From sysobjects Where Name = 'Tbl_ScoreClub'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'FactorDate')
  Alter Table dbo.Tbl_ScoreClub Add FactorDate datetime Default(Getdate())


Select @Id = Id From sysobjects Where Name = 'ClubDetailScore'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'FactorGuid')
  Alter Table dbo.ClubDetailScore Add FactorGuid UNIQUEIDENTIFIER
