USE [LicenseManager02_Def]
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=159)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (159, 0, N'Set Allocation Type', N'Set Allocation Type', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=160)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (160, 159, N'New Rule (160)', N'One License = One Computer Installation-', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=161)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (161, 159, N'New Rule (161)', N'One License = One Named User-', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=162)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (162, 159, N'New Rule (162)', N'One License = One Computer CPU-', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=163)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (163, 159, N'New Rule (163)', N'One License = X Computer CPU Cores-', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblRule] WHERE nID=164)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (164, 159, N'New Rule (164)', N'One License = One Session (at runtime)-', N'%Value0%-%Value1%', N'tblWrk_Set_Allocation_Type_159', 64, 1, 1, N'', NULL, 0, 39)
GO


