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


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

