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


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



