USE [BizTalkRuleEngineDb]
GO
/****** Object: StoredProcedure [dbo].[usp_un_rule] Script Date: 04/27/2009 22:34:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create Procedure [dbo].[usp_un_rule]
(
@rulesetName varchar(255),
@verMajor int,
@verMinor int
)
As
Begin
DECLARE @RuleSetID int
SELECT @RuleSetID = nRuleSetID
FROM RE_Ruleset
WHERE strName=@rulesetName AND nMajor=@verMajor AND nMinor=@verMinor
UPDATE RE_Ruleset
SET nStatus = 0 WHERE nRuleSetID = @RuleSetID
DELETE FROM re_deployment_config WHERE nRuleSetID = @RuleSetID
DELETE FROM re_tracking_ID WHERE nRuleSetID = @RuleSetID
End
GO
/****** Object: StoredProcedure [dbo].[usp_un_voc] Script Date: 04/27/2009 22:34:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create Procedure [dbo].[usp_un_voc]
(
@vocName varchar(255),
@verMajor int,
@verMinor int
)
As
Begin
DECLARE @nVocabularyID int
SELECT @nVocabularyID = nVocabularyID
FROM re_vocabulary
WHERE strName = @vocName AND nMajor=@verMajor AND nMinor=@verMinor
UPDATE re_vocabulary SET nStatus = 0 WHERE nVocabularyID = @nVocabularyID
End