SET QUOTED_IDENTIFIER OFF


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simBinarySet.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simBinarySet.tbl,v $ $Id: simBinarySet.tbl,v 1.7 2011/09/06 21:24:37 spedditi Exp $";
print '... Creating Table: simBinarySet_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simBinarySet_DBU (
	id				integer	NOT NULL,
	name				varchar(128) NOT NULL,
	processorID		integer	NOT NULL,
	processorName				varchar(128) NOT NULL,
	procDisplayName				varchar(128) NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simBinarySet_DBU]'
END
-----------------------------------------------------

--#include "../CommServer/Db/TblScript/simBinarySet.script"

GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simOperatingSystem.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simOperatingSystem.tbl,v $ $Id: simOperatingSystem.tbl,v 1.5 2009/06/09 19:42:58 g8builder Exp $";
print '... Creating Table: simOperatingSystem_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simOperatingSystem_DBU (
	id					integer	NOT NULL,	-- PRIMARY KEY FOR THIS TABLE
	Name				varchar(64) NOT NULL,
	Type				varchar(64) NOT NULL,
	SubType				varchar(64) NOT NULL,
	Version				varchar(64) NOT NULL,
	PlatformType				varchar(64) NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simOperatingSystem_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--                                                                      

--           Copyright (c) 1998  CommVault Systems, Inc.                

--                  All rights reserved.                                

--                                                                      

--                                                                   

--        This is unpublished proprietary source code of CommVault  

--        Systems, Inc. The copyright notice above does not evidence 

--        any actual or intended publication of such source code. 

-- ----------------------------------------------------------------------*/

GO

DECLARE @tblRetCode integer  
-- TABLENAME simOperatingSystem


-- TABLENAME simOperatingSystem
--DELETE simOperatingSystem
set @tblRetCode = @@error   
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 98 Table [simOperatingSystem_DBU]'
END
-----------------------------------------------------
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 0)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Any",Type="Any",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 0															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (0, "Any", "Any", "Any", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 3)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows 2000",Type="Windows",SubType="Server",Version="5.0",PlatformType="X86"					
        WHERE id = 3															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (3, "Windows 2000", "Windows", "Server", "5.0", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 4)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows95",Type="Windows",SubType="Server",Version="Any",PlatformType="X86"					
        WHERE id = 4															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (4, "Windows95", "Windows", "Server", "Any", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 5)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows98",Type="Windows",SubType="Server",Version="Any",PlatformType="X86"					
        WHERE id = 5															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (5, "Windows98", "Windows", "Server", "Any", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 2)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows NT",Type="Windows",SubType="Server",Version="4.0",PlatformType="X86"					
        WHERE id = 2															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (2, "Windows NT", "Windows", "Server", "4.0", "X86")

--XP	
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 24)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows XP",Type="Windows",SubType="Desktop",Version="5.1",PlatformType="X86"					
        WHERE id = 24															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (24, "Windows XP", "Windows", "Desktop", "5.1", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 48)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows XP",Type="Windows",SubType="Desktop",Version="5.2",PlatformType="X64"					
        WHERE id = 48															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (48, "Windows XP", "Windows", "Desktop", "5.2", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 39)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows XP",Type="Windows",SubType="Desktop",Version="5.2",PlatformType="IA64"					
        WHERE id = 39															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (39, "Windows XP", "Windows", "Desktop", "5.2", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 27)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows XP",Type="Windows",SubType="Desktop",Version="5.1",PlatformType="IA64"					
        WHERE id = 27															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (27, "Windows XP", "Windows", "Desktop", "5.1", "IA64")

--Windows 2003	
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 34)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2003",Type="Windows",SubType="Server",Version="5.2",PlatformType="X86"					
        WHERE id = 34															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (34, "Windows Server 2003", "Windows", "Server", "5.2", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 46)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2003",Type="Windows",SubType="Server",Version="5.2",PlatformType="X64"					
        WHERE id = 46															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (46, "Windows Server 2003", "Windows", "Server", "5.2", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 35)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2003",Type="Windows",SubType="Server",Version="5.2",PlatformType="IA64"					
        WHERE id = 35															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (35, "Windows Server 2003", "Windows", "Server", "5.2", "IA64")

--Vista
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 62)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Vista",Type="Windows",SubType="Desktop",Version="6.0",PlatformType="X86"					
        WHERE id = 62															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (62, "Windows Vista", "Windows", "Desktop", "6.0", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 64)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Vista",Type="Windows",SubType="Desktop",Version="6.0",PlatformType="X64"					
        WHERE id = 64															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (64, "Windows Vista", "Windows", "Desktop", "6.0", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 63)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Vista",Type="Windows",SubType="Desktop",Version="6.0",PlatformType="IA64"					
        WHERE id = 63															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (63, "Windows Vista", "Windows", "Desktop", "6.0", "IA64")

--Windows 2008
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 65)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2008",Type="Windows",SubType="Server",Version="6.0",PlatformType="X86"					
        WHERE id = 65															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (65, "Windows Server 2008", "Windows", "Server", "6.0", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 67)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2008",Type="Windows",SubType="Server",Version="6.0",PlatformType="X64"					
        WHERE id = 67															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (67, "Windows Server 2008", "Windows", "Server", "6.0", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 66)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows Server 2008",Type="Windows",SubType="Server",Version="6.0",PlatformType="IA64"					
        WHERE id = 66															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (66, "Windows Server 2008", "Windows", "Server", "6.0", "IA64")

--NETWARE
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 13)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="5.0",PlatformType="X86"					
        WHERE id = 13															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (13, "NetWare", "Netware", "Server", "5.0", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 31)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="5.1",PlatformType="X86"					
        WHERE id = 31															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (31, "NetWare", "Netware", "Server", "5.1", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 32)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="6.0",PlatformType="X86"					
        WHERE id = 32															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (32, "NetWare", "Netware", "Server", "6.0", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 41)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="6.50",PlatformType="X86"					
        WHERE id = 41															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (41, "NetWare", "Netware", "Server", "6.50", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 8)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="3.12",PlatformType="X86"					
        WHERE id = 8															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (8, "NetWare", "Netware", "Server", "3.12", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 9)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="3.2",PlatformType="X86"					
        WHERE id = 9															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (9, "NetWare", "Netware", "Server", "3.2", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 10)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="4.10",PlatformType="X86"					
        WHERE id = 10															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (10, "NetWare", "Netware", "Server", "4.10", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 11)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="4.11",PlatformType="X86"					
        WHERE id = 11															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (11, "NetWare", "Netware", "Server", "4.11", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 12)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="4.2",PlatformType="X86"					
        WHERE id = 12															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (12, "NetWare", "Netware", "Server", "4.2", "X86")

--UNIX

--AIX
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 28)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="4",PlatformType="PPC"					
        WHERE id = 28															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (28, "AIX", "Unix", "AIX", "4", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 36)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="5",PlatformType="PPC"					
        WHERE id = 36															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (36, "AIX", "Unix", "AIX", "5", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 70)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="5.1",PlatformType="PPC"					
        WHERE id = 70															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (70, "AIX", "Unix", "AIX", "5.1", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 71)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="5.2",PlatformType="PPC"					
        WHERE id = 71															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (71, "AIX", "Unix", "AIX", "5.2", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 72)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="5.3",PlatformType="PPC"					
        WHERE id = 72															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (72, "AIX", "Unix", "AIX", "5.3", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 79)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="6",PlatformType="PPC"					
        WHERE id = 79															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (79, "AIX", "Unix", "AIX", "6", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 83)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="6.1",PlatformType="PPC"					
        WHERE id = 83															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (83, "AIX", "Unix", "AIX", "6.1", "PPC")

--FREEBSD
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 43)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="4.7",PlatformType="Any"					
        WHERE id = 43															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (43, "FreeBSD", "Unix", "FreeBSD", "4.7", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 57)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="5.1",PlatformType="Any"					
        WHERE id = 57															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (57, "FreeBSD", "Unix", "FreeBSD", "5.1", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 73)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="6.0",PlatformType="Any"					
        WHERE id = 73															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (73, "FreeBSD", "Unix", "FreeBSD", "6.0", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 207)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="7.1",PlatformType="Any"					
        WHERE id = 207															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (207, "FreeBSD", "Unix", "FreeBSD", "7.1", "Any")

--HP
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 6)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.00",PlatformType="Any"					
        WHERE id = 6															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (6, "HP-UX", "Unix", "HP", "B.11.00", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 26)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.10.20",PlatformType="Any"					
        WHERE id = 26															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (26, "HP-UX", "Unix", "HP", "B.10.20", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 33)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.11",PlatformType="Any"					
        WHERE id = 33															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (33, "HP-UX", "Unix", "HP", "B.11.11", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 44)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.23",PlatformType="X86"					
        WHERE id = 44															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (44, "HP-UX", "Unix", "HP", "B.11.23", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 59)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.23",PlatformType="PA-RISC"					
        WHERE id = 59															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (59, "HP-UX", "Unix", "HP", "B.11.23", "PA-RISC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 74)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.31",PlatformType="X86"					
        WHERE id = 74															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (74, "HP-UX", "Unix", "HP", "B.11.31", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 75)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="B.11.31",PlatformType="PA-RISC"					
        WHERE id = 75															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (75, "HP-UX", "Unix", "HP", "B.11.31", "PA-RISC")

--SUNOS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 7)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.6",PlatformType="SPARC"					
        WHERE id = 7															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (7, "SunOS", "Unix", "Solaris", "5.6", "SPARC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 14)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.7",PlatformType="SPARC"					
        WHERE id = 14															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (14, "SunOS", "Unix", "Solaris", "5.7", "SPARC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 15)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.8",PlatformType="SPARC"					
        WHERE id = 15															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (15, "SunOS", "Unix", "Solaris", "5.8", "SPARC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 38)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.9",PlatformType="SPARC"					
        WHERE id = 38															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (38, "SunOS", "Unix", "Solaris", "5.9", "SPARC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 47)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.10",PlatformType="SPARC"					
        WHERE id = 47															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (47, "SunOS", "Unix", "Solaris", "5.10", "SPARC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 60)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="5.10",PlatformType="X86"					
        WHERE id = 60															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (60, "SunOS", "Unix", "Solaris", "5.10", "X86")

--LINUX
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 50)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.1",PlatformType="Any"					
        WHERE id = 50															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (50, "Linux", "Unix", "Linux", "glibc2.1", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 51)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.2",PlatformType="X86"					
        WHERE id = 51															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (51, "Linux", "Unix", "Linux", "glibc2.2", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 53)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.2",PlatformType="IA64"					
        WHERE id = 53															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (53, "Linux", "Unix", "Linux", "glibc2.2", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 52)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.3",PlatformType="X86"					
        WHERE id = 52															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (52, "Linux", "Unix", "Linux", "glibc2.3", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 54)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.3",PlatformType="X64"					
        WHERE id = 54															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (54, "Linux", "Unix", "Linux", "glibc2.3", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 58)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.3",PlatformType="IA64"					
        WHERE id = 58															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (58, "Linux", "Unix", "Linux", "glibc2.3", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 85)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.3",PlatformType="PPC"					
        WHERE id = 85															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (85, "Linux", "Unix", "Linux", "glibc2.3", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 86)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.3",PlatformType="PPC64"					
        WHERE id = 86															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (86, "Linux", "Unix", "Linux", "glibc2.3", "PPC64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 61)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.4",PlatformType="X86"					
        WHERE id = 61															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (61, "Linux", "Unix", "Linux", "glibc2.4", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 68)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.4",PlatformType="X64"					
        WHERE id = 68															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (68, "Linux", "Unix", "Linux", "glibc2.4", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 69)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.4",PlatformType="IA64"					
        WHERE id = 69															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (69, "Linux", "Unix", "Linux", "glibc2.4", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 87)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.4",PlatformType="PPC"					
        WHERE id = 87															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (87, "Linux", "Unix", "Linux", "glibc2.4", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 88)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.4",PlatformType="PPC64"					
        WHERE id = 88															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (88, "Linux", "Unix", "Linux", "glibc2.4", "PPC64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 76)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.5",PlatformType="X86"					
        WHERE id = 76															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (76, "Linux", "Unix", "Linux", "glibc2.5", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 78)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.5",PlatformType="X64"					
        WHERE id = 78															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (78, "Linux", "Unix", "Linux", "glibc2.5", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 77)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.5",PlatformType="IA64"					
        WHERE id = 77															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (77, "Linux", "Unix", "Linux", "glibc2.5", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 89)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.5",PlatformType="PPC"					
        WHERE id = 89															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (89, "Linux", "Unix", "Linux", "glibc2.5", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 90)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.5",PlatformType="PPC64"					
        WHERE id = 90															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (90, "Linux", "Unix", "Linux", "glibc2.5", "PPC64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 80)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.6",PlatformType="X86"					
        WHERE id = 80															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (80, "Linux", "Unix", "Linux", "glibc2.6", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 82)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.6",PlatformType="X64"					
        WHERE id = 82															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (82, "Linux", "Unix", "Linux", "glibc2.6", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 81)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.6",PlatformType="IA64"					
        WHERE id = 81															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (81, "Linux", "Unix", "Linux", "glibc2.6", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 91)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.6",PlatformType="PPC"					
        WHERE id = 91															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (91, "Linux", "Unix", "Linux", "glibc2.6", "PPC")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 92)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.6",PlatformType="PPC64"					
        WHERE id = 92															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (92, "Linux", "Unix", "Linux", "glibc2.6", "PPC64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 101)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.7",PlatformType="X86"					
        WHERE id = 101															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (101, "Linux", "Unix", "Linux", "glibc2.7", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 104)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.7",PlatformType="X64"					
        WHERE id = 104															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (104, "Linux", "Unix", "Linux", "glibc2.7", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 107)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.7",PlatformType="IA64"					
        WHERE id = 107															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (107, "Linux", "Unix", "Linux", "glibc2.7", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 102)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.8",PlatformType="X86"					
        WHERE id = 102															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (102, "Linux", "Unix", "Linux", "glibc2.8", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 105)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.8",PlatformType="X64"					
        WHERE id = 105															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (105, "Linux", "Unix", "Linux", "glibc2.8", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 108)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.8",PlatformType="IA64"					
        WHERE id = 108															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (108, "Linux", "Unix", "Linux", "glibc2.8", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 103)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.9",PlatformType="X86"					
        WHERE id = 103															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (103, "Linux", "Unix", "Linux", "glibc2.9", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 106)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.9",PlatformType="X64"					
        WHERE id = 106															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (106, "Linux", "Unix", "Linux", "glibc2.9", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 109)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.9",PlatformType="IA64"					
        WHERE id = 109															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (109, "Linux", "Unix", "Linux", "glibc2.9", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 110)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.10",PlatformType="X86"					
        WHERE id = 110															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (110, "Linux", "Unix", "Linux", "glibc2.10", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 111)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.10",PlatformType="X64"					
        WHERE id = 111															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (111, "Linux", "Unix", "Linux", "glibc2.10", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 112)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="glibc2.10",PlatformType="IA64"					
        WHERE id = 112															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (112, "Linux", "Unix", "Linux", "glibc2.10", "IA64")

--Other UNIX OS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 40)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Darwin",Type="Unix",SubType="Darwin",Version="6",PlatformType="Any"					
        WHERE id = 40															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (40, "Darwin", "Unix", "Darwin", "6", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 42)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="IRIX64",Type="Unix",SubType="IRIX64",Version="6.5",PlatformType="MIPS"					
        WHERE id = 42															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (42, "IRIX64", "Unix", "IRIX64", "6.5", "MIPS")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 30)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="OSF1",Type="Unix",SubType="OSF1",Version="5.1",PlatformType="ALPHA"					
        WHERE id = 30															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (30, "OSF1", "Unix", "OSF1", "5.1", "ALPHA")

--Dummy OS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 84)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="DB2 Database Partitioning Feature",Type="Any",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 84															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (84, "DB2 Database Partitioning Feature", "Any", "Any", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 56)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Oracle RAC",Type="Any",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 56															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (56, "Oracle RAC", "Any", "Any", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 117)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Reference Copy Client",Type="Any",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 117															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (117, "Reference Copy Client", "Any", "Any", "Any", "Any")

--NAS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 17)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Celerra",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 17															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (17, "Celerra", "Windows", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 18)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="IP4700",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 18															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (18, "IP4700", "Windows", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 55)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Centera",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 55															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (55, "Centera", "Windows", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 29)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="BlueArc",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 29															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (29, "BlueArc", "Windows", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 45)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NAS",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 45															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (45, "NAS", "Windows", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 16)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Data ONTAP",Type="Any",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 16															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (16, "Data ONTAP", "Any", "NAS", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 19)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NAS Filer",Type="Windows",SubType="NAS",Version="Any",PlatformType="Any"					
        WHERE id = 19															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (19, "NAS Filer", "Windows", "NAS", "Any", "Any")

-- Generic Operating systems
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 200)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Desktop",Version="Any",PlatformType="Any"					
        WHERE id = 200															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (200, "Windows", "Windows", "Desktop", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 21)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Server",Version="Any",PlatformType="Any"					
        WHERE id = 21															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (21, "Windows", "Windows", "Server", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 37)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="Server",Version="Any",PlatformType="Any"					
        WHERE id = 37															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (37, "NetWare", "Netware", "Server", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 20)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Unix",Type="Unix",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 20															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (20, "Unix", "Unix", "Any", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 201)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="Any",PlatformType="Any"					
        WHERE id = 201															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (201, "AIX", "Unix", "AIX", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 202)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="Any",PlatformType="Any"					
        WHERE id = 202															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (202, "FreeBSD", "Unix", "FreeBSD", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 22)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="Any",PlatformType="Any"					
        WHERE id = 22															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (22, "HP-UX", "Unix", "HP", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 23)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="Any",PlatformType="Any"					
        WHERE id = 23															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (23, "SunOS", "Unix", "Solaris", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 25)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="Any",PlatformType="Any"					
        WHERE id = 25															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (25, "Linux", "Unix", "Linux", "Any", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 203)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="Any",PlatformType="IA64"					
        WHERE id = 203															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (203, "Linux", "Unix", "Linux", "Any", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 204)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="Any",PlatformType="s390"					
        WHERE id = 204															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (204, "Linux", "Unix", "Linux", "Any", "s390")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 205)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="OSF1",Type="Unix",SubType="OSF1",Version="Any",PlatformType="Any"					
        WHERE id = 205															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (205, "OSF1", "Unix", "OSF1", "Any", "Any")

--new OS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 94)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Desktop",Version="New",PlatformType="Any"					
        WHERE id = 94															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (94, "Windows", "Windows", "Desktop", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 93)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Server",Version="New",PlatformType="Any"					
        WHERE id = 93															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (93, "Windows", "Windows", "Server", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 209)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Desktop",Version="New",PlatformType="X86"					
        WHERE id = 209															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (209, "Windows", "Windows", "Desktop", "New", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 208)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Server",Version="New",PlatformType="X86"					
        WHERE id = 208															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (208, "Windows", "Windows", "Server", "New", "X86")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 211)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Desktop",Version="New",PlatformType="X64"					
        WHERE id = 211															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (211, "Windows", "Windows", "Desktop", "New", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 210)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Server",Version="New",PlatformType="X64"					
        WHERE id = 210															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (210, "Windows", "Windows", "Server", "New", "X64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 213)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Desktop",Version="New",PlatformType="IA64"					
        WHERE id = 213															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (213, "Windows", "Windows", "Desktop", "New", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 212)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Windows",Type="Windows",SubType="Server",Version="New",PlatformType="IA64"					
        WHERE id = 212															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (212, "Windows", "Windows", "Server", "New", "IA64")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 95)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="AIX",Type="Unix",SubType="AIX",Version="New",PlatformType="Any"					
        WHERE id = 95															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (95, "AIX", "Unix", "AIX", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 96)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="FreeBSD",Type="Unix",SubType="FreeBSD",Version="New",PlatformType="Any"					
        WHERE id = 96															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (96, "FreeBSD", "Unix", "FreeBSD", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 97)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="HP-UX",Type="Unix",SubType="HP",Version="New",PlatformType="Any"					
        WHERE id = 97															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (97, "HP-UX", "Unix", "HP", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 98)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Linux",Type="Unix",SubType="Linux",Version="New",PlatformType="Any"					
        WHERE id = 98															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (98, "Linux", "Unix", "Linux", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 99)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="NetWare",Type="Netware",SubType="New",Version="New",PlatformType="Any"					
        WHERE id = 99															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (99, "NetWare", "Netware", "New", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 100)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="SunOS",Type="Unix",SubType="Solaris",Version="New",PlatformType="Any"					
        WHERE id = 100															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (100, "SunOS", "Unix", "Solaris", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 113)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="OSF1",Type="Unix",SubType="OSF1",Version="New",PlatformType="Any"					
        WHERE id = 113															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (113, "OSF1", "Unix", "OSF1", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 114)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="IRIX64",Type="Unix",SubType="IRIX64",Version="New",PlatformType="Any"					
        WHERE id = 114															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (114, "IRIX64", "Unix", "IRIX64", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 115)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Darwin",Type="Unix",SubType="Darwin",Version="New",PlatformType="Any"					
        WHERE id = 115															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (115, "Darwin", "Unix", "Darwin", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 206)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Unix",Type="Unix",SubType="New",Version="New",PlatformType="Any"					
        WHERE id = 206															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (206, "Unix", "Unix", "New", "New", "Any")
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 116)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="New OS",Type="Any",SubType="New",Version="New",PlatformType="Any"					
        WHERE id = 116															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (116, "New OS", "Any", "New", "New", "Any")

--Open VMS
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 49)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="Open VMS",Type="Unix",SubType="Any",Version="Any",PlatformType="Any"					
        WHERE id = 49															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (49, "Open VMS", "Unix", "Any", "Any", "Any")

--iSeries
 						
 IF EXISTS (Select * from simOperatingSystem_DBU where id = 118)			 							
	UPDATE simOperatingSystem_DBU													
	SET name="iSeries",Type="Any",SubType="Any",Version="Any",PlatformType="PPC"					
        WHERE id = 118															
 ELSE																	
	INSERT INTO simOperatingSystem_DBU (id, Name, Type, SubType, Version, PlatformType)							
 	VALUES (118, "iSeries", "Any", "Any", "Any", "PPC")



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simPackage.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simPackage.tbl,v $ $Id: simPackage.tbl,v 1.115 2012/04/03 22:13:11 chandru Exp $";
print '... Creating Table: simPackage_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simPackage_DBU (
	id					integer	NOT NULL,	-- PRIMARY KEY FOR THIS TABLE
	Name				varchar(256) NOT NULL,
	DisplayName				varchar(256)null,
	Rank				integer null,
	Hierarchy				varchar(256)null,
	DescriptionID		BIGINT	null,			-- message id to get the localized package description.
	InstallableFromGUI	TINYINT DEFAULT 1	NOT NULL,
	SortID				integer DEFAULT 200000	NOT NULL,
	flag			integer DEFAULT 0	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simPackage_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--                                                                      

--           Copyright (c) 1998  CommVault Systems, Inc.                

--                  All rights reserved.                                

--                                                                      

--                                                                   

--        This is unpublished proprietary source code of CommVault  

--        Systems, Inc. The copyright notice above does not evidence 

--        any actual or intended publication of such source code. 

-- ----------------------------------------------------------------------*/

SET QUOTED_IDENTIFIER OFF

SET NOCOUNT ON

GO

DECLARE @tblRetCode integer  
-- TABLENAME simPackage


-- TABLENAME simPackage

-- For each new release:	SIM_PKG_DEPRECATED_NO_NEW_INSTALL --> SIM_PKG_DEPRECATED_NO_NEW_INSTALL2

--				SIM_PKG_DEPRECATED_IN_REL --> SIM_PKG_DEPRECATED_IN_REL2

--PACKAGES
 									
 IF EXISTS (Select * from simPackage_DBU where id = 1)				 													
	UPDATE simPackage_DBU																				
	SET name="File System Core",DisplayName="File System Core",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(515 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110000,flag=0	
        WHERE id = 1																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1, "File System Core", "File System Core", null, "Microsoft Windows", (515 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 2)				 													
	UPDATE simPackage_DBU																				
	SET name="Base Seed",DisplayName="Base Seed",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 2																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2, "Base Seed", "Base Seed", null, null, null, 0, 200000, 0)

--CS packages
 										
 IF EXISTS (Select * from simPackage_DBU where id = 20)				 													
	UPDATE simPackage_DBU																				
	SET name="CommServe",DisplayName="CommServe",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules",DescriptionID=(516 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 20																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (20, "CommServe", "CommServe", null, "Packages/Common Technology Engine/CommServe Modules", (516 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 										
 IF EXISTS (Select * from simPackage_DBU where id = 21)				 													
	UPDATE simPackage_DBU																				
	SET name="Commserve SNMP Enabler",DisplayName="Commserve SNMP Enabler",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules",DescriptionID=(546 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 21																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (21, "Commserve SNMP Enabler", "Commserve SNMP Enabler", null, "Packages/Common Technology Engine/CommServe Modules", (546 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 22)				 													
	UPDATE simPackage_DBU																				
	SET name="CommCell Explorer",DisplayName="CommCell Explorer",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules",DescriptionID=(547 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 22																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (22, "CommCell Explorer", "CommCell Explorer", null, "Packages/Common Technology Engine/CommServe Modules", (547 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 23)				 													
	UPDATE simPackage_DBU																				
	SET name="Workflow Engine",DisplayName="Work Flow",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 23																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (23, "Workflow Engine", "Work Flow", null, "Packages/Common Technology Engine/CommServe Modules", null, 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 171)				 													
	UPDATE simPackage_DBU																				
	SET name="ContentStore Mail Server",DisplayName="ContentStore Mail Server",rank=null,Hierarchy="Server",DescriptionID=0,InstallableFromGUI=1,SortID=160006,flag=0	
        WHERE id = 171																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (171, "ContentStore Mail Server", "ContentStore Mail Server", null, "Server", 0, 1, 160006, 0)

--MA packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 51)				 													
	UPDATE simPackage_DBU																				
	SET name="MediaAgent",DisplayName="MediaAgent",rank=null,Hierarchy="Server",DescriptionID=(519 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=90000,flag=0	
        WHERE id = 51																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (51, "MediaAgent", "MediaAgent", null, "Server", (519 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 90000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 52)				 													
	UPDATE simPackage_DBU																				
	SET name="NDMP Remote Server",DisplayName="NDMP Remote Server",rank=null,Hierarchy="Server",DescriptionID=(539 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=90001,flag=0	
        WHERE id = 52																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (52, "NDMP Remote Server", "NDMP Remote Server", null, "Server", (539 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 90001, 0)
 								
 IF EXISTS (Select * from simPackage_DBU where id = 53)				 													
	UPDATE simPackage_DBU																				
	SET name="Shared Dynamic Disks",DisplayName="Shared Dynamic Disks",rank=null,Hierarchy="Server",DescriptionID=(567 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=90002,flag=(1 | 2 | (4 | 8))	
        WHERE id = 53																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (53, "Shared Dynamic Disks", "Shared Dynamic Disks", null, "Server", (567 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 90002, (1 | 2 | (4 | 8)))

--SharePoint packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 101)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint iDataAgent",DisplayName="SharePoint",rank=null,Hierarchy="Applications",DescriptionID=(562 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130013,flag=0	
        WHERE id = 101																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (101, "SharePoint iDataAgent", "SharePoint", null, "Applications", (562 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130013, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 102)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint Archiver",DisplayName="SharePoint Archiver",rank=null,Hierarchy="Applications",DescriptionID=(575 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | 8)	
        WHERE id = 102																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (102, "SharePoint Archiver", "SharePoint Archiver", null, "Applications", (575 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | 8))

--Exchange packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 151)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Exchange Database",DisplayName="Exchange Database",rank=null,Hierarchy="Applications",DescriptionID=(530 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130001,flag=0	
        WHERE id = 151																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (151, "iDA for Exchange Database", "Exchange Database", null, "Applications", (530 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 152)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Exchange Mailbox",DisplayName="Exchange Mailbox",rank=null,Hierarchy="Applications",DescriptionID=(531 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130002,flag=0	
        WHERE id = 152																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (152, "iDA for Exchange Mailbox", "Exchange Mailbox", null, "Applications", (531 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130002, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 153)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Exchange Public Folder",DisplayName="Exchange Public Folder",rank=null,Hierarchy="Applications",DescriptionID=(532 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130003,flag=0	
        WHERE id = 153																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (153, "iDA for Exchange Public Folder", "Exchange Public Folder", null, "Applications", (532 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130003, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 154)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Exchange Web Folder",DisplayName="Web Folder",rank=null,Hierarchy="Applications",DescriptionID=(552 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 154																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (154, "iDA for Exchange Web Folder", "Web Folder", null, "Applications", (552 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 155)				 													
	UPDATE simPackage_DBU																				
	SET name="Exchange Compliance Archiver",DisplayName="Exchange Compliance Archiver",rank=null,Hierarchy="Applications",DescriptionID=(553 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130004,flag=0	
        WHERE id = 155																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (155, "Exchange Compliance Archiver", "Exchange Compliance Archiver", null, "Applications", (553 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130004, 0)
 								
 IF EXISTS (Select * from simPackage_DBU where id = 156)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver WebProxy Agent for Exchange",DisplayName="DataArchiver WebProxy Agent",rank=null,Hierarchy="Applications",DescriptionID=(568 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=130004,flag=(1 | 2 | (4 | 8))	
        WHERE id = 156																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (156, "DataArchiver WebProxy Agent for Exchange", "DataArchiver WebProxy Agent", null, "Applications", (568 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 130004, (1 | 2 | (4 | 8)))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 157)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver for Exchange Public Folder",DisplayName="Exchange Public Folder Archiver",rank=null,Hierarchy="Applications",DescriptionID=(569 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130005,flag=0	
        WHERE id = 157																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (157, "DataArchiver for Exchange Public Folder", "Exchange Public Folder Archiver", null, "Applications", (569 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130005, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 158)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver Agent for Exchange",DisplayName="Archiver",rank=null,Hierarchy="Applications",DescriptionID=(523 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 8)	
        WHERE id = 158																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (158, "DataArchiver Agent for Exchange", "Archiver", null, "Applications", (523 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 8))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 159)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver Outlook Add-In",DisplayName="Outlook Add-In",rank=null,Hierarchy="Applications",DescriptionID=(585 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=130003,flag=0	
        WHERE id = 159																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (159, "DataArchiver Outlook Add-In", "Outlook Add-In", null, "Applications", (585 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 130003, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 172)				 													
	UPDATE simPackage_DBU																				
	SET name="Edge Attachment Store",DisplayName="Edge Attachment Store",rank=null,Hierarchy="Applications",DescriptionID=(585 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=130003,flag=0	
        WHERE id = 172																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (172, "Edge Attachment Store", "Edge Attachment Store", null, "Applications", (585 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 130003, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 160)				 													
	UPDATE simPackage_DBU																				
	SET name="OWA Proxy Enabler",DisplayName="OWA Proxy Enabler",rank=null,Hierarchy="Applications",DescriptionID=(585 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130010,flag=0	
        WHERE id = 160																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (160, "OWA Proxy Enabler", "OWA Proxy Enabler", null, "Applications", (585 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130010, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 161)				 													
	UPDATE simPackage_DBU																				
	SET name="Edge Uploader",DisplayName="Edge Uploader",rank=null,Hierarchy="Applications",DescriptionID=(827 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=130003,flag=0	
        WHERE id = 161																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (161, "Edge Uploader", "Edge Uploader", null, "Applications", (827 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 130003, 0)

--Lotus Notes packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 201)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Domino Database",DisplayName="Domino Database",rank=null,Hierarchy="Applications",DescriptionID=(525 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130007,flag=0	
        WHERE id = 201																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (201, "iDA for Domino Database", "Domino Database", null, "Applications", (525 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130007, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 202)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Domino Document",DisplayName="Domino Document",rank=null,Hierarchy="Applications",DescriptionID=(526 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130008,flag=0	
        WHERE id = 202																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (202, "iDA for Domino Document", "Domino Document", null, "Applications", (526 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130008, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 203)				 													
	UPDATE simPackage_DBU																				
	SET name="Domino DataArchiver",DisplayName="Domino Mailbox Archiver",rank=null,Hierarchy="Applications",DescriptionID=(576 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130009,flag=0	
        WHERE id = 203																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (203, "Domino DataArchiver", "Domino Mailbox Archiver", null, "Applications", (576 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130009, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 204)				 													
	UPDATE simPackage_DBU																				
	SET name="Domino DataArchiver Client",DisplayName="Notes Add-in",rank=null,Hierarchy="Applications",DescriptionID=(578 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=140003,flag=0	
        WHERE id = 204																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (204, "Domino DataArchiver Client", "Notes Add-in", null, "Applications", (578 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 140003, 0)

--content indexing packages 
 								
 IF EXISTS (Select * from simPackage_DBU where id = 251)				 													
	UPDATE simPackage_DBU																				
	SET name="Content Indexing Engine",DisplayName="Content Indexing Engine",rank=null,Hierarchy="Search",DescriptionID=(577 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=160000,flag=(1 | 2 | 8)	
        WHERE id = 251																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (251, "Content Indexing Engine", "Content Indexing Engine", null, "Search", (577 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 160000, (1 | 2 | 8))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 252)				 													
	UPDATE simPackage_DBU																				
	SET name="Web Server",DisplayName="Web Server",rank=null,Hierarchy="Search""::""Packages/Client Modules/Backup & Recovery/Web Based Search & Browse",DescriptionID=(582 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=160001,flag=0	
        WHERE id = 252																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (252, "Web Server", "Web Server", null, "Search""::""Packages/Client Modules/Backup & Recovery/Web Based Search & Browse", (582 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 160001, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 253)				 													
	UPDATE simPackage_DBU																				
	SET name="Online Content Indexing",DisplayName="Online Content Indexing",rank=null,Hierarchy="Search",DescriptionID=(583 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 253																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (253, "Online Content Indexing", "Online Content Indexing", null, "Search", (583 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 255)				 													
	UPDATE simPackage_DBU																				
	SET name="Compliance Search",DisplayName="Compliance Search",rank=null,Hierarchy="Server",DescriptionID=0,InstallableFromGUI=1,SortID=160007,flag=0	
        WHERE id = 255																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (255, "Compliance Search", "Compliance Search", null, "Server", 0, 1, 160007, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 256)				 													
	UPDATE simPackage_DBU																				
	SET name="Authentication Service",DisplayName="Authentication Service",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 256																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (256, "Authentication Service", "Authentication Service", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 257)				 													
	UPDATE simPackage_DBU																				
	SET name="Search Engine",DisplayName="Search Engine",rank=null,Hierarchy="Server",DescriptionID=(765 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=90001,flag=0	
        WHERE id = 257																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (257, "Search Engine", "Search Engine", null, "Server", (765 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 90001, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 259)				 													
	UPDATE simPackage_DBU																				
	SET name="Search Advanced Document Type Support",DisplayName="Search Advanced Document Type Support",rank=null,Hierarchy="Search",DescriptionID=(774 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=160006,flag=0	
        WHERE id = 259																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (259, "Search Advanced Document Type Support", "Search Advanced Document Type Support", null, "Search", (774 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 160006, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 260)				 													
	UPDATE simPackage_DBU																				
	SET name="Multi Lingual Search Engine",DisplayName="Multi Lingual Search Engine",rank=null,Hierarchy="Search",DescriptionID=(775 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=160007,flag=0	
        WHERE id = 260																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (260, "Multi Lingual Search Engine", "Multi Lingual Search Engine", null, "Search", (775 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 160007, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 261)				 													
	UPDATE simPackage_DBU																				
	SET name="Extended Indexing Engine",DisplayName="Extended Indexing Engine",rank=null,Hierarchy="Search",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 261																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (261, "Extended Indexing Engine", "Extended Indexing Engine", null, "Search", null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 262)				 													
	UPDATE simPackage_DBU																				
	SET name="Proxy Server For Content Store",DisplayName="Proxy Server For Content Store",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 262																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (262, "Proxy Server For Content Store", "Proxy Server For Content Store", null, null, null, 0, 200000, 0)

--QR Agents
 								
 IF EXISTS (Select * from simPackage_DBU where id = 301)				 													
	UPDATE simPackage_DBU																				
	SET name="OSSV Agent",DisplayName="OSSV Agent",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(537 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=180000,flag=(1 | 2)	
        WHERE id = 301																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (301, "OSSV Agent", "OSSV Agent", null, "OSSV Plug-In", (537 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 180000, (1 | 2))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 302)				 													
	UPDATE simPackage_DBU																				
	SET name="Recovery Director",DisplayName="Recovery Director",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(563 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 302																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (302, "Recovery Director", "Recovery Director", null, "OSSV Plug-In", (563 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 303)				 													
	UPDATE simPackage_DBU																				
	SET name="SnapView Enabler for OSSV",DisplayName="SnapView Enabler for OSSV",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(544 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 303																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (303, "SnapView Enabler for OSSV", "SnapView Enabler for OSSV", null, "OSSV Plug-In", (544 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 304)				 													
	UPDATE simPackage_DBU																				
	SET name="VSS Enabler for OSSV Plug-in",DisplayName="VSS Enabler for OSSV Plug-in",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(543 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=180004,flag=0	
        WHERE id = 304																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (304, "VSS Enabler for OSSV Plug-in", "VSS Enabler for OSSV Plug-in", null, "OSSV Plug-In", (543 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 180004, 0)
 								
 IF EXISTS (Select * from simPackage_DBU where id = 305)				 													
	UPDATE simPackage_DBU																				
	SET name="OSSV Enabler",DisplayName="OSSV Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(559 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=180002,flag=(1 | 2)	
        WHERE id = 305																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (305, "OSSV Enabler", "OSSV Enabler", null, "OSSV Plug-In", (559 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 180002, (1 | 2))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 306)				 													
	UPDATE simPackage_DBU																				
	SET name="SnapVault/SnapMirror ONTAP Enabler",DisplayName="SnapVault/SnapMirror ONTAP Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(560 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 306																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (306, "SnapVault/SnapMirror ONTAP Enabler", "SnapVault/SnapMirror ONTAP Enabler", null, "OSSV Plug-In", (560 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 										
 IF EXISTS (Select * from simPackage_DBU where id = 307)				 													
	UPDATE simPackage_DBU																				
	SET name="NetApp Snapshot Enabler",DisplayName="NetApp Snapshot Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(581 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 307																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (307, "NetApp Snapshot Enabler", "NetApp Snapshot Enabler", null, "OSSV Plug-In", (581 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)

--DB agents
 												
 IF EXISTS (Select * from simPackage_DBU where id = 351)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for DB2",DisplayName="DB2",rank=null,Hierarchy="Database",DescriptionID=(540 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120005,flag=0	
        WHERE id = 351																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (351, "iDA for DB2", "DB2", null, "Database", (540 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120005, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 352)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Oracle",DisplayName="Oracle",rank=null,Hierarchy="Database",DescriptionID=(522 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120006,flag=0	
        WHERE id = 352																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (352, "iDA for Oracle", "Oracle", null, "Database", (522 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120006, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 353)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for MSSQL Server",DisplayName="SQL Server",rank=null,Hierarchy="Database",DescriptionID=(529 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120007,flag=0	
        WHERE id = 353																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (353, "iDA for MSSQL Server", "SQL Server", null, "Database", (529 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120007, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 354)				 													
	UPDATE simPackage_DBU																				
	SET name="SAP on Oracle",DisplayName="SAP for Oracle",rank=null,Hierarchy="Database",DescriptionID=(555 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120008,flag=0	
        WHERE id = 354																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (354, "SAP on Oracle", "SAP for Oracle", null, "Database", (555 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120008, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 355)				 													
	UPDATE simPackage_DBU																				
	SET name="SAP on MaxDB",DisplayName="SAP for MaxDB",rank=null,Hierarchy="Database",DescriptionID=(565 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120009,flag=0	
        WHERE id = 355																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (355, "SAP on MaxDB", "SAP for MaxDB", null, "Database", (565 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120009, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 356)				 													
	UPDATE simPackage_DBU																				
	SET name="Sybase iDataAgent",DisplayName="Sybase",rank=null,Hierarchy="Database",DescriptionID=(570 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120010,flag=0	
        WHERE id = 356																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (356, "Sybase iDataAgent", "Sybase", null, "Database", (570 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120010, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 358)				 													
	UPDATE simPackage_DBU																				
	SET name="MySQL iDataAgent",DisplayName="MySQL",rank=null,Hierarchy="Database",DescriptionID=(606 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120011,flag=0	
        WHERE id = 358																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (358, "MySQL iDataAgent", "MySQL", null, "Database", (606 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120011, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 360)				 													
	UPDATE simPackage_DBU																				
	SET name="Informix IDA",DisplayName="Informix",rank=null,Hierarchy="Database",DescriptionID=(605 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120012,flag=0	
        WHERE id = 360																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (360, "Informix IDA", "Informix", null, "Database", (605 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120012, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 362)				 													
	UPDATE simPackage_DBU																				
	SET name="PostgreSQL iDataAgent",DisplayName="PostgreSQL",rank=null,Hierarchy="Database",DescriptionID=(607 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120013,flag=0	
        WHERE id = 362																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (362, "PostgreSQL iDataAgent", "PostgreSQL", null, "Database", (607 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120013, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 363)				 													
	UPDATE simPackage_DBU																				
	SET name="Documentum Agent",DisplayName="Documentum",rank=null,Hierarchy="Database",DescriptionID=(804 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120014,flag=0	
        WHERE id = 363																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (363, "Documentum Agent", "Documentum", null, "Database", (804 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120014, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 718)				 													
	UPDATE simPackage_DBU																				
	SET name="RootOfCPUFolder",DisplayName="RootOfCPUFolder",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 718																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (718, "RootOfCPUFolder", "RootOfCPUFolder", null, null, null, 0, 200000, 0)

--SRM packagess
 									
 IF EXISTS (Select * from simPackage_DBU where id = 401)				 													
	UPDATE simPackage_DBU																				
	SET name="Operations Manager",DisplayName="Operations Manager",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules",DescriptionID=(586 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 401																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (401, "Operations Manager", "Operations Manager", null, "Packages/Common Technology Engine/CommServe Modules", (586 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 								
 IF EXISTS (Select * from simPackage_DBU where id = 402)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM Windows File System Agent",DisplayName="Standalone SRM for Files",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(587 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=110050,flag=(1 | 2 | (4 | 8))	
        WHERE id = 402																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (402, "SRM Windows File System Agent", "Standalone SRM for Files", null, "Microsoft Windows", (587 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 110050, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 403)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM Exchange Agent",DisplayName="SRM",rank=null,Hierarchy="Applications",DescriptionID=(588 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 403																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (403, "SRM Exchange Agent", "SRM", null, "Applications", (588 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 404)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM NAS Agent",DisplayName="Standalone SRM for NAS",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(589 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 404																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (404, "SRM NAS Agent", "Standalone SRM for NAS", null, "Microsoft Windows", (589 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 								
 IF EXISTS (Select * from simPackage_DBU where id = 405)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM SQL Agent",DisplayName="SRM for MSSQL",rank=null,Hierarchy="Database",DescriptionID=(590 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=120020,flag=(1 | 2 | (4 | 8))	
        WHERE id = 405																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (405, "SRM SQL Agent", "SRM for MSSQL", null, "Database", (590 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 120020, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 406)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM Oracle Agent",DisplayName="SRM Oracle Agent",rank=null,Hierarchy="Packages/Client Modules/SRM",DescriptionID=(591 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 406																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (406, "SRM Oracle Agent", "SRM Oracle Agent", null, "Packages/Client Modules/SRM", (591 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 407)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM NetWare Proxy Agent",DisplayName="SRM NetWare Proxy Agent",rank=null,Hierarchy="Packages/Client Modules/SRM",DescriptionID=(592 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 407																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (407, "SRM NetWare Proxy Agent", "SRM NetWare Proxy Agent", null, "Packages/Client Modules/SRM", (592 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 408)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM SharePoint Agent",DisplayName="SRM",rank=null,Hierarchy="Applications",DescriptionID=(593 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 408																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (408, "SRM SharePoint Agent", "SRM", null, "Applications", (593 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))

--Replication agents
 												
 IF EXISTS (Select * from simPackage_DBU where id = 451)				 													
	UPDATE simPackage_DBU																				
	SET name="Continuous Data Replicator",DisplayName="Continuous Data Replicator",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(574 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110002,flag=0	
        WHERE id = 451																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (451, "Continuous Data Replicator", "Continuous Data Replicator", null, "Microsoft Windows", (574 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110002, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 452)				 													
	UPDATE simPackage_DBU																				
	SET name="Driver for Continuous Data Replicator",DisplayName="Driver for Continuous Data Replicator",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(573 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 452																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (452, "Driver for Continuous Data Replicator", "Driver for Continuous Data Replicator", null, "Microsoft Windows", (573 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 454)				 													
	UPDATE simPackage_DBU																				
	SET name="WorkStation Backup",DisplayName="WorkStation Backup",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(601 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 454																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (454, "WorkStation Backup", "WorkStation Backup", null, "Microsoft Windows", (601 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))

--Snapshot-based packages
 									
 IF EXISTS (Select * from simPackage_DBU where id = 503)				 													
	UPDATE simPackage_DBU																				
	SET name="QSnap",DisplayName="QSnap",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(534 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=195001,flag=0	
        WHERE id = 503																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (503, "QSnap", "QSnap", null, "Microsoft Windows", (534 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 195001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 453)				 													
	UPDATE simPackage_DBU																				
	SET name="VSS Provider",DisplayName="VSS Provider",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(584 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110005,flag=0	
        WHERE id = 453																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (453, "VSS Provider", "VSS Provider", null, "Microsoft Windows", (584 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110005, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 455)				 													
	UPDATE simPackage_DBU																				
	SET name="VSS Hardware Provider",DisplayName="VSS Hardware Provider",rank=null,Hierarchy="Microsoft Windows",DescriptionID=0,InstallableFromGUI=1,SortID=110006,flag=0	
        WHERE id = 455																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (455, "VSS Hardware Provider", "VSS Hardware Provider", null, "Microsoft Windows", 0, 1, 110006, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 709)				 													
	UPDATE simPackage_DBU																				
	SET name="Data Protection Manager",DisplayName="Data Protection Manager",rank=null,Hierarchy="Applications",DescriptionID=0,InstallableFromGUI=1,SortID=130012,flag=0	
        WHERE id = 709																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (709, "Data Protection Manager", "Data Protection Manager", null, "Applications", 0, 1, 130012, 0)

--driver packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 551)				 													
	UPDATE simPackage_DBU																				
	SET name="Driver for File Recalls",DisplayName="Driver for File Archiver",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(541 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110003,flag=0	
        WHERE id = 551																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (551, "Driver for File Recalls", "Driver for File Archiver", null, "Microsoft Windows", (541 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110003, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 552)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver for Network Storage Client",DisplayName="File Share Archiver Client",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(564 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110004,flag=0	
        WHERE id = 552																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (552, "DataArchiver for Network Storage Client", "File Share Archiver Client", null, "Microsoft Windows", (564 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110004, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 554)				 													
	UPDATE simPackage_DBU																				
	SET name="1-Touch Recovery",DisplayName="1-Touch Recovery",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 554																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (554, "1-Touch Recovery", "1-Touch Recovery", null, null, null, 0, 200000, 0)

--QNET packages
 											
 IF EXISTS (Select * from simPackage_DBU where id = 603)				 													
	UPDATE simPackage_DBU																				
	SET name="CommNetExplorer",DisplayName="CommNetExplorer",rank=null,Hierarchy="Packages/Common Technology Engine/CommServe Modules/CommNet",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 603																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (603, "CommNetExplorer", "CommNetExplorer", null, "Packages/Common Technology Engine/CommServe Modules/CommNet", null, 0, 200000, (1 | 2 | (4 | 8)))

--License packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 651)				 													
	UPDATE simPackage_DBU																				
	SET name="Licensing Web Application",DisplayName="License Generator",rank=null,Hierarchy="Tools",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 651																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (651, "Licensing Web Application", "License Generator", null, "Tools", null, 0, 200000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 652)				 													
	UPDATE simPackage_DBU																				
	SET name="Licensing Server",DisplayName="Licensing Server",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 652																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (652, "Licensing Server", "Licensing Server", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 653)				 													
	UPDATE simPackage_DBU																				
	SET name="Licensing Web Service",DisplayName="Licensing Web Service",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 653																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (653, "Licensing Web Service", "Licensing Web Service", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 654)				 													
	UPDATE simPackage_DBU																				
	SET name="Licensing Lookup Data Admin Application",DisplayName="Licensing Lookup Data Admin Application",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 654																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (654, "Licensing Lookup Data Admin Application", "Licensing Lookup Data Admin Application", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))

--other packages	
 									
 IF EXISTS (Select * from simPackage_DBU where id = 701)				 													
	UPDATE simPackage_DBU																				
	SET name="Commcell Console",DisplayName="Commcell Console",rank=null,Hierarchy="Server",DescriptionID=(517 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=100000,flag=0	
        WHERE id = 701																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (701, "Commcell Console", "Commcell Console", null, "Server", (517 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 100000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 702)				 													
	UPDATE simPackage_DBU																				
	SET name="File System",DisplayName="File System",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(520 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110001,flag=0	
        WHERE id = 702																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (702, "File System", "File System", null, "Microsoft Windows", (520 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 703)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Active Directory",DisplayName="Active Directory",rank=null,Hierarchy="Applications",DescriptionID=(521 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130000,flag=0	
        WHERE id = 703																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (703, "iDA for Active Directory", "Active Directory", null, "Applications", (521 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130000, 0)
 											
 IF EXISTS (Select * from simPackage_DBU where id = 705)				 													
	UPDATE simPackage_DBU																				
	SET name="Standalone File Archiver for Windows Agent",DisplayName="Standalone Archiver for Files",rank=null,Hierarchy="Microsoft Windows",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 8)	
        WHERE id = 705																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (705, "Standalone File Archiver for Windows Agent", "Standalone Archiver for Files", null, "Microsoft Windows", null, 0, 200000, (1 | 8))
 									
 IF EXISTS (Select * from simPackage_DBU where id = 704)				 													
	UPDATE simPackage_DBU																				
	SET name="File System NAS Restore Enabler",DisplayName="File System NAS Restore Enabler",rank=null,Hierarchy="Microsoft Windows",DescriptionID=(545 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | 8)	
        WHERE id = 704																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (704, "File System NAS Restore Enabler", "File System NAS Restore Enabler", null, "Microsoft Windows", (545 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | 8))
 											
 IF EXISTS (Select * from simPackage_DBU where id = 706)				 													
	UPDATE simPackage_DBU																				
	SET name="EchoView Enabler for OSSV",DisplayName="EchoView Enabler for OSSV",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 706																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (706, "EchoView Enabler for OSSV", "EchoView Enabler for OSSV", null, "OSSV Plug-In", null, 0, 200000, (1 | 2 | (4 | 8)))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 707)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Image Level",DisplayName="Image Level",rank=null,Hierarchy="Microsoft Windows",DescriptionID=null,InstallableFromGUI=0,SortID=110007,flag=1		
        WHERE id = 707																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (707, "iDA for Image Level", "Image Level", null, "Microsoft Windows", null, 0, 110007, 1)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 710)				 													
	UPDATE simPackage_DBU																				
	SET name="Media Explorer",DisplayName="Media Explorer",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 710																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (710, "Media Explorer", "Media Explorer", null, null, null, 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 711)				 													
	UPDATE simPackage_DBU																				
	SET name="Exchange Offline Mining Tool",DisplayName="Exchange Offline Mining Tool",rank=null,Hierarchy="Applications",DescriptionID=(597 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=130006,flag=0	
        WHERE id = 711																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (711, "Exchange Offline Mining Tool", "Exchange Offline Mining Tool", null, "Applications", (597 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 130006, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 712)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint Offline Mining Tool",DisplayName="SharePoint Offline Mining Tool",rank=null,Hierarchy=null,DescriptionID=(599 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 712																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (712, "SharePoint Offline Mining Tool", "SharePoint Offline Mining Tool", null, null, (599 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 713)				 													
	UPDATE simPackage_DBU																				
	SET name="VirtualServer Agent",DisplayName="Virtual Server",rank=null,Hierarchy="Virtualization",DescriptionID=(602 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110500,flag=0	
        WHERE id = 713																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (713, "VirtualServer Agent", "Virtual Server", null, "Virtualization", (602 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110500, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 715)				 													
	UPDATE simPackage_DBU																				
	SET name="External Data Connector Agent",DisplayName="External Data Connector",rank=null,Hierarchy="Tools",DescriptionID=(803 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=210001,flag=0	
        WHERE id = 715																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (715, "External Data Connector Agent", "External Data Connector", null, "Tools", (803 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 210001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 751)				 													
	UPDATE simPackage_DBU																				
	SET name="VPN Access",DisplayName="VPN Access",rank=null,Hierarchy="Tools",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 751																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (751, "VPN Access", "VPN Access", null, "Tools", null, 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 728)				 													
	UPDATE simPackage_DBU																				
	SET name="VWeb",DisplayName="VWeb",rank=null,Hierarchy="Server",DescriptionID=0,InstallableFromGUI=1,SortID=100001,flag=0	
        WHERE id = 728																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (728, "VWeb", "VWeb", null, "Server", 0, 1, 100001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 719)				 													
	UPDATE simPackage_DBU																				
	SET name="Test Automation",DisplayName="Test Automation",rank=null,Hierarchy="Tools",DescriptionID=0,InstallableFromGUI=1,SortID=210004,flag=0	
        WHERE id = 719																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (719, "Test Automation", "Test Automation", null, "Tools", 0, 1, 210004, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 725)				 													
	UPDATE simPackage_DBU																				
	SET name="Commserve Failover",DisplayName="Commserve Failover",rank=null,Hierarchy="Tools",DescriptionID=0,InstallableFromGUI=0,SortID=210005,flag=0	
        WHERE id = 725																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (725, "Commserve Failover", "Commserve Failover", null, "Tools", 0, 0, 210005, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 716)				 													
	UPDATE simPackage_DBU																				
	SET name="PrePost Install Package",DisplayName="PrePost Install Package",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 716																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (716, "PrePost Install Package", "PrePost Install Package", null, null, null, 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 717)				 													
	UPDATE simPackage_DBU																				
	SET name="Database Upgrade Package",DisplayName="Database Upgrade",rank=null,Hierarchy="Tools",DescriptionID=(802 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=190004,flag=0	
        WHERE id = 717																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (717, "Database Upgrade Package", "Database Upgrade", null, "Tools", (802 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 190004, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 720)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack",DisplayName="Resource Pack",rank=null,Hierarchy="Tools",DescriptionID=0,InstallableFromGUI=1,SortID=210000,flag=0	
        WHERE id = 720																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (720, "Resource Pack", "Resource Pack", null, "Tools", 0, 1, 210000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 721)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack Limited Use",DisplayName="Advanced Tools",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 721																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (721, "Resource Pack Limited Use", "Advanced Tools", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 722)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack Internal Use",DisplayName="Internal Tools",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 722																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (722, "Resource Pack Internal Use", "Internal Tools", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 											
 IF EXISTS (Select * from simPackage_DBU where id = 726)				 													
	UPDATE simPackage_DBU																				
	SET name="Web Console",DisplayName="Web Console",rank=null,Hierarchy="Server",DescriptionID=null,InstallableFromGUI=1,SortID=100002,flag=0		
        WHERE id = 726																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (726, "Web Console", "Web Console", null, "Server",null, 1, 100002, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 727)				 													
	UPDATE simPackage_DBU																				
	SET name="Metrics Reporting",DisplayName="Metrics Reporting",rank=null,Hierarchy="Server",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 727																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (727, "Metrics Reporting", "Metrics Reporting", null, "Server", null, 0, 200000, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 729)				 													
	UPDATE simPackage_DBU																				
	SET name="Content Analyzer",DisplayName="Content Analyzer",rank=null,Hierarchy="Server",DescriptionID=0,InstallableFromGUI=0,SortID=160008,flag=0	
        WHERE id = 729																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (729, "Content Analyzer", "Content Analyzer", null, "Server", 0, 0, 160008, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 730)				 													
	UPDATE simPackage_DBU																				
	SET name="Cloud Connector",DisplayName="Cloud Connector",rank=null,Hierarchy="Applications",DescriptionID=0,InstallableFromGUI=1,SortID=130011,flag=0	
        WHERE id = 730																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (730, "Cloud Connector", "Cloud Connector", null, "Applications", 0, 1, 130011, 0)

--DB packages
 														
 IF EXISTS (Select * from simPackage_DBU where id = 801)				 													
	UPDATE simPackage_DBU																				
	SET name="Commserve DB",DisplayName="Commserve DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 801																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (801, "Commserve DB", "Commserve DB", null, null, null, 0, 200000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 802)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM services DB",DisplayName="SRM services DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 802																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (802, "SRM services DB", "SRM services DB", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 														
 IF EXISTS (Select * from simPackage_DBU where id = 803)				 													
	UPDATE simPackage_DBU																				
	SET name="DM2 Web services DB",DisplayName="DM2 Web services DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 803																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (803, "DM2 Web services DB", "DM2 Web services DB", null, null, null, 0, 200000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 804)				 													
	UPDATE simPackage_DBU																				
	SET name="Commnet Server DB",DisplayName="Commnet Server DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 804																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (804, "Commnet Server DB", "Commnet Server DB", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 														
 IF EXISTS (Select * from simPackage_DBU where id = 805)				 													
	UPDATE simPackage_DBU																				
	SET name="License Generator Server DB",DisplayName="License Generator Server DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 805																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (805, "License Generator Server DB", "License Generator Server DB", null, null, null, 0, 200000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 806)				 													
	UPDATE simPackage_DBU																				
	SET name="License Generator License DB",DisplayName="License Generator License DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 806																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (806, "License Generator License DB", "License Generator License DB", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 807)				 													
	UPDATE simPackage_DBU																				
	SET name="License Generator Front DB",DisplayName="License Generator Front DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 807																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (807, "License Generator Front DB", "License Generator Front DB", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 														
 IF EXISTS (Select * from simPackage_DBU where id = 808)				 													
	UPDATE simPackage_DBU																				
	SET name="Workflow Engine DB",DisplayName="Workflow Engine DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 808																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (808, "Workflow Engine DB", "Workflow Engine DB", null, null, null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 809)				 													
	UPDATE simPackage_DBU																				
	SET name="Metrics Reporting DB",DisplayName="Metrics Reporting DB",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 809																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (809, "Metrics Reporting DB", "Metrics Reporting DB", null, null, null, 0, 200000, 0)

--expired packages
 													
 IF EXISTS (Select * from simPackage_DBU where id = 901)				 													
	UPDATE simPackage_DBU																				
	SET name="NT FileSystem",DisplayName="NT FileSystem",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 901																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (901, "NT FileSystem", "NT FileSystem", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 902)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint Database V2",DisplayName="SharePoint Database V2",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 902																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (902, "SharePoint Database V2", "SharePoint Database V2", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 5000)				 													
	UPDATE simPackage_DBU																				
	SET name="CommCell Console",DisplayName="CommCell Console",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 5000																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (5000, "CommCell Console", "CommCell Console", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 903)				 													
	UPDATE simPackage_DBU																				
	SET name="Open File Handler",DisplayName="Open File Handler",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 903																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (903, "Open File Handler", "Open File Handler", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 904)				 													
	UPDATE simPackage_DBU																				
	SET name="Hardware Snap Enabler",DisplayName="Hardware Snap Enabler",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 904																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (904, "Hardware Snap Enabler", "Hardware Snap Enabler", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 905)				 													
	UPDATE simPackage_DBU																				
	SET name="Serverless Data Manager",DisplayName="Serverless Data Manager",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 905																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (905, "Serverless Data Manager", "Serverless Data Manager", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 906)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint Database V1",DisplayName="SharePoint Database V1",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 906																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (906, "SharePoint Database V1", "SharePoint Database V1", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 907)				 													
	UPDATE simPackage_DBU																				
	SET name="SharePoint Document",DisplayName="SharePoint Document",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 907																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (907, "SharePoint Document", "SharePoint Document", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 908)				 													
	UPDATE simPackage_DBU																				
	SET name="DataArchiver Agent for Network Storage",DisplayName="DataArchiver Agent for Network Storage",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 908																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (908, "DataArchiver Agent for Network Storage", "DataArchiver Agent for Network Storage", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 910)				 													
	UPDATE simPackage_DBU																				
	SET name="Exchange Offline Mining Tool for Administrators",DisplayName="Exchange Offline Mining Tool for Administrators",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 910																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (910, "Exchange Offline Mining Tool for Administrators", "Exchange Offline Mining Tool for Administrators", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 911)				 													
	UPDATE simPackage_DBU																				
	SET name="NAS",DisplayName="NAS",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 911																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (911, "NAS", "NAS", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 912)				 													
	UPDATE simPackage_DBU																				
	SET name="Notes Database",DisplayName="Notes Database",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 912																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (912, "Notes Database", "Notes Database", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 913)				 													
	UPDATE simPackage_DBU																				
	SET name="Notes Document",DisplayName="Notes Document",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 913																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (913, "Notes Document", "Notes Document", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 5001)				 													
	UPDATE simPackage_DBU																				
	SET name="HW Snap Enabler",DisplayName="HW Snap Enabler",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 5001																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (5001, "HW Snap Enabler", "HW Snap Enabler", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))

--UNIX packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1002)				 													
	UPDATE simPackage_DBU																				
	SET name="File System Core",DisplayName="File System Core",rank=null,Hierarchy="File System",DescriptionID=(515 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110000,flag=0	
        WHERE id = 1002																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1002, "File System Core", "File System Core", null, "File System", (515 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1003)				 													
	UPDATE simPackage_DBU																				
	SET name="Base0 Module",DisplayName="Base0 Module",rank=null,Hierarchy=null,DescriptionID=(515 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1003																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1003, "Base0 Module", "Base0 Module", null, null, (515 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1004)				 													
	UPDATE simPackage_DBU																				
	SET name="Application Base",DisplayName="Application Base",rank=null,Hierarchy=null,DescriptionID=(515 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1004																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1004, "Application Base", "Application Base", null, null, (515 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, 0)

--Lotus Notes Packages	
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1051)				 													
	UPDATE simPackage_DBU																				
	SET name="Domino DB IDA",DisplayName="Domino Database",rank=null,Hierarchy="Applications",DescriptionID=(525 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=140000,flag=0	
        WHERE id = 1051																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1051, "Domino DB IDA", "Domino Database", null, "Applications", (525 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 140000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1052)				 													
	UPDATE simPackage_DBU																				
	SET name="iDA for Domino Document",DisplayName="Domino Document",rank=null,Hierarchy="Applications",DescriptionID=(526 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=140001,flag=0	
        WHERE id = 1052																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1052, "iDA for Domino Document", "Domino Document", null, "Applications", (526 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 140001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1053)				 													
	UPDATE simPackage_DBU																				
	SET name="Domino DataArchiver",DisplayName="Domino Mailbox Archiver",rank=null,Hierarchy="Applications",DescriptionID=(576 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=140002,flag=0	
        WHERE id = 1053																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1053, "Domino DataArchiver", "Domino Mailbox Archiver", null, "Applications", (576 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 140002, 0)

--MISC packages	
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1101)				 													
	UPDATE simPackage_DBU																				
	SET name="UNIX File System",DisplayName="File System",rank=null,Hierarchy="File System",DescriptionID=(520 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110001,flag=0	
        WHERE id = 1101																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1101, "UNIX File System", "File System", null, "File System", (520 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110001, 0)
 											
 IF EXISTS (Select * from simPackage_DBU where id = 1102)				 													
	UPDATE simPackage_DBU																				
	SET name="Proxy FileSystem Agent",DisplayName="Proxy FileSystem",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 1102																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1102, "Proxy FileSystem Agent", "Proxy FileSystem", null, "File System", null, 0, 200000, (1 | 2 | (4 | 8)))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1103)				 													
	UPDATE simPackage_DBU																				
	SET name="Serverless Data Manager",DisplayName="Serverless Data Manager",rank=null,Hierarchy="Replication",DescriptionID=null,InstallableFromGUI=0,SortID=195001,flag=(1 | 2 | 8)		
        WHERE id = 1103																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1103, "Serverless Data Manager", "Serverless Data Manager", null, "Replication", null, 0, 195001, (1 | 2 | 8))
 								
 IF EXISTS (Select * from simPackage_DBU where id = 1104)				 													
	UPDATE simPackage_DBU																				
	SET name="Image IDA for UNIX",DisplayName="Image IDA for UNIX",rank=null,Hierarchy="File System",DescriptionID=(551 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=110004,flag=1	
        WHERE id = 1104																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1104, "Image IDA for UNIX", "Image IDA for UNIX", null, "File System", (551 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 110004, 1)
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1105)				 													
	UPDATE simPackage_DBU																				
	SET name="SCSI Driver",DisplayName="SCSI Driver",rank=null,Hierarchy="Server",DescriptionID=null,InstallableFromGUI=0,SortID=90006,flag=0		
        WHERE id = 1105																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1105, "SCSI Driver", "SCSI Driver", null, "Server", null, 0, 90006, 0)
 											
 IF EXISTS (Select * from simPackage_DBU where id = 1106)				 													
	UPDATE simPackage_DBU																				
	SET name="Copy Manager Driver",DisplayName="Copy Manager Driver",rank=null,Hierarchy="Replication",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 1106																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1106, "Copy Manager Driver", "Copy Manager Driver", null, "Replication", null, 0, 200000, (1 | 2 | (4 | 8)))
 											
 IF EXISTS (Select * from simPackage_DBU where id = 1107)				 													
	UPDATE simPackage_DBU																				
	SET name="StorageTek EchoView Enabler",DisplayName="StorageTek EchoView Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 1107																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1107, "StorageTek EchoView Enabler", "StorageTek EchoView Enabler", null, "OSSV Plug-In", null, 0, 200000, (1 | 2 | (4 | 8)))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1109)				 													
	UPDATE simPackage_DBU																				
	SET name="Data Archiver for UNIX",DisplayName="Archiver",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=0,SortID=110006,flag=1		
        WHERE id = 1109																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1109, "Data Archiver for UNIX", "Archiver", null, "File System", null, 0, 110006, 1)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1110)				 													
	UPDATE simPackage_DBU																				
	SET name="Media Explorer",DisplayName="Media Explorer",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1110																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1110, "Media Explorer", "Media Explorer", null, null, null, 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1112)				 													
	UPDATE simPackage_DBU																				
	SET name="Data Classification",DisplayName="Data Classification",rank=null,Hierarchy="Replication",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1112																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1112, "Data Classification", "Data Classification", null, "Replication", null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1113)				 													
	UPDATE simPackage_DBU																				
	SET name="File System Filter Driver",DisplayName="File System Filter Driver",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1113																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1113, "File System Filter Driver", "File System Filter Driver", null, null, null, 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1114)				 													
	UPDATE simPackage_DBU																				
	SET name="Continuous Data Replicator",DisplayName="Continuous Data Replicator",rank=null,Hierarchy="File System",DescriptionID=(574 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=170000,flag=0	
        WHERE id = 1114																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1114, "Continuous Data Replicator", "Continuous Data Replicator", null, "File System", (574 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 170000, 0)
 											
 IF EXISTS (Select * from simPackage_DBU where id = 1115)				 													
	UPDATE simPackage_DBU																				
	SET name="OSSV",DisplayName="OSSV",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2)	
        WHERE id = 1115																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1115, "OSSV", "OSSV", null, "OSSV Plug-In", null, 0, 200000, (1 | 2))
 											
 IF EXISTS (Select * from simPackage_DBU where id = 1116)				 													
	UPDATE simPackage_DBU																				
	SET name="OSSV Enabler",DisplayName="OSSV Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2)	
        WHERE id = 1116																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1116, "OSSV Enabler", "OSSV Enabler", null, "OSSV Plug-In", null, 0, 200000, (1 | 2))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1117)				 													
	UPDATE simPackage_DBU																				
	SET name="NetApp SnapShot Enabler",DisplayName="NetApp SnapShot Enabler",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1117																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1117, "NetApp SnapShot Enabler", "NetApp SnapShot Enabler", null, "OSSV Plug-In", null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1118)				 													
	UPDATE simPackage_DBU																				
	SET name="CommCell Console",DisplayName="CommCell Console",rank=null,Hierarchy="Server",DescriptionID=null,InstallableFromGUI=1,SortID=100003,flag=0		
        WHERE id = 1118																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1118, "CommCell Console", "CommCell Console", null, "Server", null, 1, 100003, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1119)				 													
	UPDATE simPackage_DBU																				
	SET name="1-Touch Boot Server",DisplayName="1-Touch Boot Server",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1119																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1119, "1-Touch Boot Server", "1-Touch Boot Server", null, null, null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1121)				 													
	UPDATE simPackage_DBU																				
	SET name="Novell OES Linux FS Agent",DisplayName="Novell OES File System",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=1,SortID=110006,flag=0		
        WHERE id = 1121																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1121, "Novell OES Linux FS Agent", "Novell OES File System", null, "File System", null, 1, 110006, 0)
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1122)				 													
	UPDATE simPackage_DBU																				
	SET name="Groupwise DB on OES",DisplayName="Groupwise DB on OES",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=0,SortID=110007,flag=(1 | 2 | 4)		
        WHERE id = 1122																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1122, "Groupwise DB on OES", "Groupwise DB on OES", null, "File System", null, 0, 110007, (1 | 2 | 4))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1123)				 													
	UPDATE simPackage_DBU																				
	SET name="SRM File System Agent",DisplayName="SRM",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=0,SortID=110020,flag=(1 | 2 | (4 | 8))		
        WHERE id = 1123																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1123, "SRM File System Agent", "SRM", null, "File System", null, 0, 110020, (1 | 2 | (4 | 8)))
 										
 IF EXISTS (Select * from simPackage_DBU where id = 1124)				 													
	UPDATE simPackage_DBU																				
	SET name="Novell OES Directory Services",DisplayName="Novell OES Directory Services",rank=null,Hierarchy="File System",DescriptionID=null,InstallableFromGUI=0,SortID=110008,flag=(1 | 2 | 4)		
        WHERE id = 1124																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1124, "Novell OES Directory Services", "Novell OES Directory Services", null, "File System", null, 0, 110008, (1 | 2 | 4))
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1126)				 													
	UPDATE simPackage_DBU																				
	SET name="Documentum Agent",DisplayName="Documentum",rank=null,Hierarchy="Database",DescriptionID=(804 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=110010,flag=0	
        WHERE id = 1126																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1126, "Documentum Agent", "Documentum", null, "Database", (804 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 110010, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 1128)				 													
	UPDATE simPackage_DBU																				
	SET name="External Data Connector Agent",DisplayName="External Data Connector",rank=null,Hierarchy="Tools",DescriptionID=(803 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=200000,flag=0	
        WHERE id = 1128																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1128, "External Data Connector Agent", "External Data Connector", null, "Tools", (803 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1129)				 													
	UPDATE simPackage_DBU																				
	SET name="SAP Archive",DisplayName="SAP Archive",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1129																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1129, "SAP Archive", "SAP Archive", null, null, null, 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1130)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack",DisplayName="Resource Pack",rank=null,Hierarchy="Tools",DescriptionID=0,InstallableFromGUI=1,SortID=210000,flag=0	
        WHERE id = 1130																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1130, "Resource Pack", "Resource Pack", null, "Tools", 0, 1, 210000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1131)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack Limited Use",DisplayName="Resource Pack Limited Use",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1131																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1131, "Resource Pack Limited Use", "Resource Pack Limited Use", null, null, null, 0, 200000, 0)
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1132)				 													
	UPDATE simPackage_DBU																				
	SET name="Resource Pack Internal Use",DisplayName="Resource Pack Internal Use",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1132																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1132, "Resource Pack Internal Use", "Resource Pack Internal Use", null, null, null, 0, 200000, 0)
 													
 IF EXISTS (Select * from simPackage_DBU where id = 1133)				 													
	UPDATE simPackage_DBU																				
	SET name="CDR Predictor",DisplayName="CDR Predictor",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 1133																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1133, "CDR Predictor", "CDR Predictor", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1135)				 													
	UPDATE simPackage_DBU																				
	SET name="Web Console",DisplayName="Web Console",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1135																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1135, "Web Console", "Web Console", null, null, null, 0, 200000, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1136)				 													
	UPDATE simPackage_DBU																				
	SET name="VirtualServer Agent on UNIX",DisplayName="Virtual Server",rank=null,Hierarchy="Virtualization",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0	
        WHERE id = 1136																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1136, "VirtualServer Agent on UNIX", "Virtual Server", null, "Virtualization", null, 1, 200000, 0)

--DB Agents	
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1202)				 													
	UPDATE simPackage_DBU																				
	SET name="Sybase Agent",DisplayName="Sybase",rank=null,Hierarchy="Database",DescriptionID=(570 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120005,flag=0	
        WHERE id = 1202																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1202, "Sybase Agent", "Sybase", null, "Database", (570 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120005, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 1203)				 													
	UPDATE simPackage_DBU																				
	SET name="SybaseIQ Agent",DisplayName="SybaseIQ",rank=null,Hierarchy="Database",DescriptionID=(604 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=120006,flag=0	
        WHERE id = 1203																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1203, "SybaseIQ Agent", "SybaseIQ", null, "Database", (604 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 120006, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1204)				 													
	UPDATE simPackage_DBU																				
	SET name="Oracle Agent",DisplayName="Oracle",rank=null,Hierarchy="Database",DescriptionID=(522 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120001,flag=0	
        WHERE id = 1204																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1204, "Oracle Agent", "Oracle", null, "Database", (522 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120001, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1205)				 													
	UPDATE simPackage_DBU																				
	SET name="Oracle SAP Agent",DisplayName="SAP for Oracle",rank=null,Hierarchy="Database",DescriptionID=(555 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120002,flag=0	
        WHERE id = 1205																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1205, "Oracle SAP Agent", "SAP for Oracle", null, "Database", (555 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120002, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1206)				 													
	UPDATE simPackage_DBU																				
	SET name="SAPMAXDB Agent",DisplayName="SAP for MaxDB",rank=null,Hierarchy="Database",DescriptionID=(565 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120003,flag=0	
        WHERE id = 1206																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1206, "SAPMAXDB Agent", "SAP for MaxDB", null, "Database", (565 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120003, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1207)				 													
	UPDATE simPackage_DBU																				
	SET name="DB2 Agent",DisplayName="DB2",rank=null,Hierarchy="Database",DescriptionID=(540 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120004,flag=0	
        WHERE id = 1207																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1207, "DB2 Agent", "DB2", null, "Database", (540 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120004, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1208)				 													
	UPDATE simPackage_DBU																				
	SET name="MySQL Agent",DisplayName="MySQL",rank=null,Hierarchy="Database",DescriptionID=(606 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120007,flag=0	
        WHERE id = 1208																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1208, "MySQL Agent", "MySQL", null, "Database", (606 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120007, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1201)				 													
	UPDATE simPackage_DBU																				
	SET name="Informix Agent",DisplayName="Informix",rank=null,Hierarchy="Database",DescriptionID=(605 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120008,flag=0	
        WHERE id = 1201																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1201, "Informix Agent", "Informix", null, "Database", (605 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120008, 0)
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1209)				 													
	UPDATE simPackage_DBU																				
	SET name="Postgre SQL Agent",DisplayName="PostgreSQL",rank=null,Hierarchy="Database",DescriptionID=(607 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=120008,flag=0	
        WHERE id = 1209																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1209, "Postgre SQL Agent", "PostgreSQL", null, "Database", (607 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 120008, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 1210)				 													
	UPDATE simPackage_DBU																				
	SET name="SAP HANA Agent",DisplayName="SAP for Hana",rank=null,Hierarchy="Database",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 1210																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1210, "SAP HANA Agent", "SAP for Hana", null, "Database", null, 1, 200000, 0)

--MA packages
 												
 IF EXISTS (Select * from simPackage_DBU where id = 1301)				 													
	UPDATE simPackage_DBU																				
	SET name="MediaAgent",DisplayName="MediaAgent",rank=null,Hierarchy="Server",DescriptionID=(519 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=1,SortID=90004,flag=0	
        WHERE id = 1301																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1301, "MediaAgent", "MediaAgent", null, "Server", (519 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 1, 90004, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 1302)				 													
	UPDATE simPackage_DBU																				
	SET name="NDMP Remote Server",DisplayName="NDMP Remote Server",rank=null,Hierarchy="Server",DescriptionID=(539 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=90005,flag=0	
        WHERE id = 1302																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1302, "NDMP Remote Server", "NDMP Remote Server", null, "Server", (539 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 90005, 0)
 									
 IF EXISTS (Select * from simPackage_DBU where id = 1303)				 													
	UPDATE simPackage_DBU																				
	SET name="NAS Restore Enabler",DisplayName="NAS Restore Enabler",rank=null,Hierarchy="File System",DescriptionID=(545 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | 8)	
        WHERE id = 1303																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1303, "NAS Restore Enabler", "NAS Restore Enabler", null, "File System", (545 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | 8))
 														
 IF EXISTS (Select * from simPackage_DBU where id = 1304)				 													
	UPDATE simPackage_DBU																				
	SET name="SAN Storage Server",DisplayName="SAN Storage Server",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=0	
        WHERE id = 1304																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1304, "SAN Storage Server", "SAN Storage Server", null, null, null, 0, 200000, 0)

--QR Agents	
 								
 IF EXISTS (Select * from simPackage_DBU where id = 1351)				 													
	UPDATE simPackage_DBU																				
	SET name="OSSV Agent",DisplayName="OSSV Agent",rank=null,Hierarchy="OSSV Plug-In",DescriptionID=(537 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=180005,flag=(1 | 2)	
        WHERE id = 1351																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1351, "OSSV Agent", "OSSV Agent", null, "OSSV Plug-In", (537 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 180005, (1 | 2))

--Snapshot-based packages	
 								
 IF EXISTS (Select * from simPackage_DBU where id = 1401)				 													
	UPDATE simPackage_DBU																				
	SET name="Qsnap Driver",DisplayName="Qsnap",rank=null,Hierarchy="Replication",DescriptionID=(534 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=195005,flag=0	
        WHERE id = 1401																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (1401, "Qsnap Driver", "Qsnap", null, "Replication", (534 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 195005, 0)

--Netware package
 									
 IF EXISTS (Select * from simPackage_DBU where id = 2001)				 													
	UPDATE simPackage_DBU																				
	SET name="NetWare File System",DisplayName="NetWare File System",rank=null,Hierarchy="File System",DescriptionID=(520 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))	
        WHERE id = 2001																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2001, "NetWare File System", "NetWare File System", null, "File System", (520 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 2002)				 													
	UPDATE simPackage_DBU																				
	SET name="Novell Directory Services",DisplayName="Novell Directory Services",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 2002																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2002, "Novell Directory Services", "Novell Directory Services", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 								
 IF EXISTS (Select * from simPackage_DBU where id = 2003)				 													
	UPDATE simPackage_DBU																				
	SET name="NetWare MediaAgent",DisplayName="NetWare MediaAgent",rank=null,Hierarchy="Server",DescriptionID=(519 | (CAST(POWER(2, 24) AS BIGINT) * 4)),InstallableFromGUI=0,SortID=90020,flag=(1 | 2 | (4 | 8))	
        WHERE id = 2003																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2003, "NetWare MediaAgent", "NetWare MediaAgent", null, "Server", (519 | (CAST(POWER(2, 24) AS BIGINT) * 4)), 0, 90020, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 2004)				 													
	UPDATE simPackage_DBU																				
	SET name="NetWare GroupWise",DisplayName="NetWare GroupWise",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 2004																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2004, "NetWare GroupWise", "NetWare GroupWise", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 2005)				 													
	UPDATE simPackage_DBU																				
	SET name="NetWare File System Data Archiver",DisplayName="NetWare File System Data Archiver",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 2005																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2005, "NetWare File System Data Archiver", "NetWare File System Data Archiver", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 													
 IF EXISTS (Select * from simPackage_DBU where id = 2006)				 													
	UPDATE simPackage_DBU																				
	SET name="NetWare Media Explorer",DisplayName="NetWare Media Explorer",rank=null,Hierarchy=null,DescriptionID=null,InstallableFromGUI=0,SortID=200000,flag=(1 | 2 | (4 | 8))		
        WHERE id = 2006																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (2006, "NetWare Media Explorer", "NetWare Media Explorer", null, null, null, 0, 200000, (1 | 2 | (4 | 8)))
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6001)				 													
	UPDATE simPackage_DBU																				
	SET name="WinDbg 6.11.1.404",DisplayName="WinDbg 6.11.1.404",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6001																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6001, "WinDbg 6.11.1.404", "WinDbg 6.11.1.404", null, "Other Software Packages", null, 1, 200000, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6002)				 													
	UPDATE simPackage_DBU																				
	SET name="Remote CommServe",DisplayName="Remote CommServe",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6002																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6002, "Remote CommServe", "Remote CommServe", null, "Other Software Packages", null, 1, 200000, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6003)				 													
	UPDATE simPackage_DBU																				
	SET name="MSSQL Server SP2",DisplayName="MSSQL Server SP2",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6003																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6003, "MSSQL Server SP2", "MSSQL Server SP2", null, "Other Software Packages", null, 1, 200000, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6004)				 													
	UPDATE simPackage_DBU																				
	SET name="Mozilla Firefox 5.0.1",DisplayName="Mozilla Firefox 5.0.1",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6004																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6004, "Mozilla Firefox 5.0.1", "Mozilla Firefox 5.0.1", null, "Other Software Packages", null, 1, 200000, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6005)				 													
	UPDATE simPackage_DBU																				
	SET name="NotePad++ 5.7",DisplayName="NotePad++ 5.7",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6005																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6005, "NotePad++ 5.7", "NotePad++ 5.7", null, "Other Software Packages", null, 1, 200000, 0)
 															
 IF EXISTS (Select * from simPackage_DBU where id = 6006)				 													
	UPDATE simPackage_DBU																				
	SET name="Google Chrome 18.0.1025.162",DisplayName="Google Chrome 18.0.1025.162",rank=null,Hierarchy="Other Software Packages",DescriptionID=null,InstallableFromGUI=1,SortID=200000,flag=0			
        WHERE id = 6006																		 			
 ELSE																							
	INSERT INTO simPackage_DBU (id, Name, DisplayName, Rank, Hierarchy, DescriptionID, InstallableFromGUI, SortID, Flag)								
	VALUES (6006, "Google Chrome 18.0.1025.162", "Google Chrome 18.0.1025.162", null, "Other Software Packages", null, 1, 200000, 0)



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simPackageMap.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simPackageMap.tbl,v $ $Id: simPackageMap.tbl,v 1.9 2011/09/06 18:39:48 hparmar Exp $";
print '... Creating Table: simPackageMap_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simPackageMap_DBU (
	id					INTEGER NOT NULL IDENTITY (1,1),
	simPackageId		integer	NOT NULL,
	apptype				integer	NOT NULL,
	lictype				integer	NOT NULL,
	simOSid				integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simPackageMap_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--

--  Copyright (c) CommVault Systems                                           

--  All Rights Reserved                                                       

--                                                                            

--  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF CommVault Systems          

--  The copyright notice above does not evidence any                          

--  actual or intended publication of such source code.                       

--                                                                            

--  File name   : simPackageMap.script                                                            

--                                                                            

--  Description : Contains simPackage Mapping.--				  

--                                                                            

--  Author      : CommVault                                                             

--                                                                           

-- ----------------------------------------------------------------------*/

SET NOCOUNT ON

GO

DECLARE @tblRetCode integer  
-- TABLENAME simPackageMap


-- TABLENAME simPackageMap

delete simPackageMap_DBU

-- FileSystem
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 3)	
	UPDATE simPackageMap_DBU											
	SET apptype = 11, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 3						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 11, 1, 3)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 3)	
	UPDATE simPackageMap_DBU											
	SET apptype = 11, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 3						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 11, 0, 3)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 24)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 2								
        WHERE simPackageId = 1 and simOSid = 24						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 33, 2, 24)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 24)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 24						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 33, 0, 24)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 48)	
	UPDATE simPackageMap_DBU											
	SET apptype = 34, lictype = 2								
        WHERE simPackageId = 1 and simOSid = 48						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 34, 2, 48)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 48)	
	UPDATE simPackageMap_DBU											
	SET apptype = 34, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 48						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 34, 0, 48)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 27)	
	UPDATE simPackageMap_DBU											
	SET apptype = 34, lictype = 2								
        WHERE simPackageId = 1 and simOSid = 27						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 34, 2, 27)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 27)	
	UPDATE simPackageMap_DBU											
	SET apptype = 34, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 27						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 34, 0, 27)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 34)	
	UPDATE simPackageMap_DBU											
	SET apptype = 42, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 34						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 42, 1, 34)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 34)	
	UPDATE simPackageMap_DBU											
	SET apptype = 42, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 34						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 42, 0, 34)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 46)	
	UPDATE simPackageMap_DBU											
	SET apptype = 43, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 46						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 43, 1, 46)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 46)	
	UPDATE simPackageMap_DBU											
	SET apptype = 43, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 46						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 43, 0, 46)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 35)	
	UPDATE simPackageMap_DBU											
	SET apptype = 43, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 35						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 43, 1, 35)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 35)	
	UPDATE simPackageMap_DBU											
	SET apptype = 43, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 35						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 43, 0, 35)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 200)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 2								
        WHERE simPackageId = 1 and simOSid = 200						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 33, 2, 200)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 200)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 200						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 33, 0, 200)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 21)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 21						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 33, 1, 21)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 21)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 21						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 33, 0, 21)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 16)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 1								
        WHERE simPackageId = 1 and simOSid = 16						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 33, 1, 16)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 702 and simOSid = 16)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 0								
        WHERE simPackageId = 702 and simOSid = 16						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (702, 33, 0, 16)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 16)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 16						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 29, 1, 16)

-- SQL 
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 353 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 81, lictype = 3								
        WHERE simPackageId = 353 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (353, 81, 3, 0)

--WBA
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 454 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 107, lictype = 0								
        WHERE simPackageId = 454 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (454, 107, 0, 0)

--Oracle
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 352 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 22, lictype = 3								
        WHERE simPackageId = 352 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (352, 22, 3, 0)

--FSDM
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 705 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 58, lictype = 0								
        WHERE simPackageId = 705 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (705, 58, 0, 0)

-- Base Client

--if not exists (select * from simPackageMap where simPackageId = N_WIN_PACKAGE_BASECLIENT AND  apptype = CV_APPTYPE_COMMCLNTMGMT AND lictype = SIM_CSL_AT_V2_CCBASE AND simOSid = N_CV_OS_ID_ANY)

--insert into simPackageMap(simPackageId, apptype, lictype, simOSid)

--	values (N_WIN_PACKAGE_BASECLIENT, CV_APPTYPE_COMMCLNTMGMT, SIM_CSL_AT_V2_CCBASE, N_CV_OS_ID_ANY)

--CS packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 20 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1000, lictype = 50331648								
        WHERE simPackageId = 20 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (20, 1000, 50331648, 0)

--SIM_CSL_AT_V2_SNMP_ENABLER
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 21 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1012, lictype = 0								
        WHERE simPackageId = 21 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (21, 1012, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 22 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1011, lictype = 0								
        WHERE simPackageId = 22 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (22, 1011, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 23 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1127, lictype = 0								
        WHERE simPackageId = 23 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (23, 1127, 0, 0)

--MA packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 51 and simOSid = 200)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 51 and simOSid = 200						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (51, 1002, 11, 200)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 51 and simOSid = 21)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 51 and simOSid = 21						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (51, 1002, 11, 21)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 52 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1004, lictype = 0								
        WHERE simPackageId = 52 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (52, 1004, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 53 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1072, lictype = 0								
        WHERE simPackageId = 53 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (53, 1072, 0, 0)

--SharePoint packages - SIM_CSL_AT_V2_SHAREPOINT_DOC_2003
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 101 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 78, lictype = 0								
        WHERE simPackageId = 101 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (101, 78, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 102 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 89, lictype = 129								
        WHERE simPackageId = 102 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (102, 89, 129, 0)

--Exchange packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 151 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 53, lictype = 3								
        WHERE simPackageId = 151 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (151, 53, 3, 0)

-- SIM_CSL_AT_V2_MSEXCHANGE_MB	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 152 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 54, lictype = 0								
        WHERE simPackageId = 152 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (152, 54, 0, 0)

-- SIM_CSL_AT_V2_MS_EXCHANGE_PUB_FOLDER	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 153 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 35, lictype = 0								
        WHERE simPackageId = 153 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (153, 35, 0, 0)

-- SIM_CSL_AT_V2_MS_EXCHANGE_PUB_FOLDER	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 154 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 55, lictype = 0								
        WHERE simPackageId = 154 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (154, 55, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 155 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 67, lictype = 0								
        WHERE simPackageId = 155 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (155, 67, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 156 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1063, lictype = 0								
        WHERE simPackageId = 156 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (156, 1063, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 157 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 82, lictype = 122								
        WHERE simPackageId = 157 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (157, 82, 122, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 158 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 56, lictype = 0								
        WHERE simPackageId = 158 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (158, 56, 0, 0)

-- SIM_CSL_AT_V2_OWA_PROXY
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 160 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1078, lictype = 0								
        WHERE simPackageId = 160 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (160, 1078, 0, 0)

--Lotus Notes packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 201 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 59, lictype = 3								
        WHERE simPackageId = 201 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (201, 59, 3, 0)

-- SIM_CSL_AT_V2_LOTUSNOTES_DOC_WINDOWS
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 202 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 60, lictype = 0								
        WHERE simPackageId = 202 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (202, 60, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 203 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 90, lictype = 0								
        WHERE simPackageId = 203 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (203, 90, 0, 0)

--content indexing packages

--134
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 251 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1064, lictype = 0								
        WHERE simPackageId = 251 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (251, 1064, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 252 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1070, lictype = 0								
        WHERE simPackageId = 252 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (252, 1070, 0, 0)

--194
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 257 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1125, lictype = 0								
        WHERE simPackageId = 257 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (257, 1125, 0, 0)

--N_WIN_PACKAGE_SOLR_ADVACED_DOCUMENT_TYPE_SUPPORT 259
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 259 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1140, lictype = 0								
        WHERE simPackageId = 259 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (259, 1140, 0, 0)

--QR Agents - SIM_CSL_AT_V2_REPLICATION_IDA_WINDOWS
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 301 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 47, lictype = 0								
        WHERE simPackageId = 301 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (301, 47, 0, 0)

-- SIM_CSL_AT_V2_RECOVERY_DIRECTOR
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 302 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 72, lictype = 0								
        WHERE simPackageId = 302 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (302, 72, 0, 0)

--SIM_CSL_AT_V2_QR_ENABLER_SNAPVIEW	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 303 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1013, lictype = 0								
        WHERE simPackageId = 303 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (303, 1013, 0, 0)

--SIM_CSL_AT_V2_QR_ENABLER_DOTNET_SHADOW_SERVICE
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 304 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1008, lictype = 0								
        WHERE simPackageId = 304 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (304, 1008, 0, 0)

-- SIM_CSL_AT_V2_SNAP_VAULT
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 305 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1029, lictype = 0								
        WHERE simPackageId = 305 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (305, 1029, 0, 0)

-- SIM_CSL_AT_V2_ONTAP_V2_SNAP_VAULT
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 306 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1031, lictype = 0								
        WHERE simPackageId = 306 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (306, 1031, 0, 0)

-- SIM_CSL_AT_V2_NETAPP_SNAP_VAULT	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 307 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1066, lictype = 0								
        WHERE simPackageId = 307 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (307, 1066, 0, 0)

--DB agents
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 351 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 37, lictype = 3								
        WHERE simPackageId = 351 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (351, 37, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 354 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 61, lictype = 16								
        WHERE simPackageId = 354 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (354, 61, 16, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 355 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 79, lictype = 16								
        WHERE simPackageId = 355 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (355, 79, 16, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 356 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 5, lictype = 3								
        WHERE simPackageId = 356 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (356, 5, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 363 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 128, lictype = 3								
        WHERE simPackageId = 363 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (363, 128, 3, 0)

--SRM packagess - SIM_CSL_AT_V2_SRM_SERVICES
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 401 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1082, lictype = 0								
        WHERE simPackageId = 401 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (401, 1082, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 402 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 600, lictype = 0								
        WHERE simPackageId = 402 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (402, 600, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 403 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 606, lictype = 0								
        WHERE simPackageId = 403 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (403, 606, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 404 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 651, lictype = 170								
        WHERE simPackageId = 404 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (404, 651, 170, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 405 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 602, lictype = 0								
        WHERE simPackageId = 405 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (405, 602, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 406 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 650, lictype = 170								
        WHERE simPackageId = 406 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (406, 650, 170, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 407 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 652, lictype = 170								
        WHERE simPackageId = 407 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (407, 652, 170, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 408 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 607, lictype = 0								
        WHERE simPackageId = 408 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (408, 607, 0, 0)

--Replication agents
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 451 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 84, lictype = 124								
        WHERE simPackageId = 451 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (451, 84, 124, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 452 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1067, lictype = 0								
        WHERE simPackageId = 452 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (452, 1067, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 453 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1071, lictype = 0								
        WHERE simPackageId = 453 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (453, 1071, 0, 0)

--SIM_CSL_AT_V2_HOTSPOT_SNAPSHOT
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 503 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1007, lictype = 0								
        WHERE simPackageId = 503 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (503, 1007, 0, 0)

--driver packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 551 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1068, lictype = 0								
        WHERE simPackageId = 551 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (551, 1068, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 554 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1040, lictype = 0								
        WHERE simPackageId = 554 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (554, 1040, 0, 0)

--QNET packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 603 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1107, lictype = 0								
        WHERE simPackageId = 603 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (603, 1107, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 727 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 121, lictype = 171								
        WHERE simPackageId = 727 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (727, 121, 171, 0)

--other packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 701 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1014, lictype = 0								
        WHERE simPackageId = 701 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (701, 1014, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 703 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 41, lictype = 3								
        WHERE simPackageId = 703 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (703, 41, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 704 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1009, lictype = 0								
        WHERE simPackageId = 704 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (704, 1009, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 706 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1017, lictype = 0								
        WHERE simPackageId = 706 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (706, 1017, 0, 0)

-- SIM_CSL_AT_V2_IMAGELEVEL_WINFS_IDA
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 707 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 65, lictype = 0								
        WHERE simPackageId = 707 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (707, 65, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 709 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 91, lictype = 3								
        WHERE simPackageId = 709 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (709, 91, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 710 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1083, lictype = 0								
        WHERE simPackageId = 710 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (710, 1083, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 711 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1087, lictype = 157								
        WHERE simPackageId = 711 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (711, 1087, 157, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 712 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1089, lictype = 157								
        WHERE simPackageId = 712 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (712, 1089, 157, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 713 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 106, lictype = 143								
        WHERE simPackageId = 713 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (713, 106, 143, 0)

--Reference Copy Client - Dummy client
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1 and simOSid = 117)	
	UPDATE simPackageMap_DBU											
	SET apptype = 33, lictype = 0								
        WHERE simPackageId = 1 and simOSid = 117						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1, 33, 0, 117)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 152 and simOSid = 117)	
	UPDATE simPackageMap_DBU											
	SET apptype = 54, lictype = 0								
        WHERE simPackageId = 152 and simOSid = 117						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (152, 54, 0, 117)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 117)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 0								
        WHERE simPackageId = 1002 and simOSid = 117						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 29, 0, 117)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1136 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 106, lictype = 143								
        WHERE simPackageId = 1136 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1136, 106, 143, 0)

--DB packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 801 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1062, lictype = 0								
        WHERE simPackageId = 801 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (801, 1062, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 802 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1080, lictype = 0								
        WHERE simPackageId = 802 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (802, 1080, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 803 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1074, lictype = 0								
        WHERE simPackageId = 803 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (803, 1074, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 804 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1106, lictype = 0								
        WHERE simPackageId = 804 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (804, 1106, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 808 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1126, lictype = 0								
        WHERE simPackageId = 808 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (808, 1126, 0, 0)

--expired packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 901 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1, lictype = 1								
        WHERE simPackageId = 901 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (901, 1, 1, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 902 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 69, lictype = 3								
        WHERE simPackageId = 902 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (902, 69, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 5000 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1050, lictype = 0								
        WHERE simPackageId = 5000 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (5000, 1050, 0, 0)

-- SIM_CSL_AT_V2_HOTSPOT_SNAPSHOT
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 903 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1061, lictype = 0								
        WHERE simPackageId = 903 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (903, 1061, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 904 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1088, lictype = 0								
        WHERE simPackageId = 904 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (904, 1088, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 905 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 24, lictype = 0								
        WHERE simPackageId = 905 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (905, 24, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 906 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 32, lictype = 0								
        WHERE simPackageId = 906 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (906, 32, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 907 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 46, lictype = 0								
        WHERE simPackageId = 907 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (907, 46, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 908 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 73, lictype = 63								
        WHERE simPackageId = 908 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (908, 73, 63, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 910 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1086, lictype = 0								
        WHERE simPackageId = 910 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (910, 1086, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 912 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 6, lictype = 3								
        WHERE simPackageId = 912 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (912, 6, 3, 0)

-- SIM_CSL_AT_V2_LOTUSNOTES_DOC_WINDOWS
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 913 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 7, lictype = 0								
        WHERE simPackageId = 913 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (913, 7, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 5001 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1088, lictype = 0								
        WHERE simPackageId = 5001 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (5001, 1088, 0, 0)

-- New 9.0 agents

--if not exists (select * from simPackageMap where simPackageId = N_WIN_PACKAGE_SYBASE_IQ AND  apptype = CV_APPTYPE_SYBASE_IQ AND lictype = SIM_CSL_AT_V2_SYBASE_IQ AND simOSid = N_CV_OS_ID_ANY)

--insert into simPackageMap(simPackageId, apptype, lictype, simOSid)

--	values (N_WIN_PACKAGE_SYBASE_IQ, CV_APPTYPE_SYBASE_IQ, SIM_CSL_AT_V2_SYBASE_IQ, N_CV_OS_ID_ANY)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 358 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 104, lictype = 3								
        WHERE simPackageId = 358 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (358, 104, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 360 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 3, lictype = 3								
        WHERE simPackageId = 360 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (360, 3, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1209 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 125, lictype = 3								
        WHERE simPackageId = 1209 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1209, 125, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 715 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 127, lictype = 0								
        WHERE simPackageId = 715 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (715, 127, 0, 0)

--10.0 packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 362 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 125, lictype = 3								
        WHERE simPackageId = 362 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (362, 125, 3, 0)

--UNIX packages

--insert into simPackageMap(simPackageId, apptype, lictype, simOSid)

--	values (N_UNIX_PACKAGE_BASECLIENT, CV_APPTYPE_UNIX_BASE_NOLIC, N_CV_DOES_NOT_CONSUME_LICENSE, N_CV_OS_ID_ANY)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1003 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1084, lictype = 0								
        WHERE simPackageId = 1003 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1003, 1084, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1004 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1045, lictype = 0								
        WHERE simPackageId = 1004 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1004, 1045, 0, 0)

--Lotus notes packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1051 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 77, lictype = 17								
        WHERE simPackageId = 1051 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1051, 77, 17, 0)

-- SIM_CSL_AT_V2_LOTUSNOTES_DOC_UNIX
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1052 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 52, lictype = 0								
        WHERE simPackageId = 1052 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1052, 52, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1053 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 90, lictype = 0								
        WHERE simPackageId = 1053 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1053, 90, 0, 0)

--UNIX FS license and apptypes
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 23)	
	UPDATE simPackageMap_DBU											
	SET apptype = 19, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 23						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 19, 1, 23)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 23)	
	UPDATE simPackageMap_DBU											
	SET apptype = 19, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 23						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 19, 0, 23)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 22)	
	UPDATE simPackageMap_DBU											
	SET apptype = 17, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 22						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 17, 1, 22)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 22)	
	UPDATE simPackageMap_DBU											
	SET apptype = 17, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 22						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 17, 0, 22)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 201)	
	UPDATE simPackageMap_DBU											
	SET apptype = 21, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 201						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 21, 1, 201)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 201)	
	UPDATE simPackageMap_DBU											
	SET apptype = 21, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 201						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 21, 0, 201)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 204)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 204						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 29, 1, 204)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 204)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 204						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 29, 0, 204)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 203)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 203						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 29, 1, 203)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 203)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 203						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 29, 0, 203)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 25)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 25						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 29, 1, 25)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 25)	
	UPDATE simPackageMap_DBU											
	SET apptype = 29, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 25						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 29, 0, 25)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 30)	
	UPDATE simPackageMap_DBU											
	SET apptype = 36, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 30						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 36, 1, 30)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 30)	
	UPDATE simPackageMap_DBU											
	SET apptype = 36, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 30						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 36, 0, 30)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 40)	
	UPDATE simPackageMap_DBU											
	SET apptype = 63, lictype = 2								
        WHERE simPackageId = 1002 and simOSid = 40						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 63, 2, 40)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 40)	
	UPDATE simPackageMap_DBU											
	SET apptype = 63, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 40						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 63, 0, 40)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 42)	
	UPDATE simPackageMap_DBU											
	SET apptype = 64, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 42						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 64, 1, 42)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 42)	
	UPDATE simPackageMap_DBU											
	SET apptype = 64, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 42						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 64, 0, 42)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 202)	
	UPDATE simPackageMap_DBU											
	SET apptype = 74, lictype = 1								
        WHERE simPackageId = 1002 and simOSid = 202						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 74, 1, 202)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 202)	
	UPDATE simPackageMap_DBU											
	SET apptype = 74, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 202						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 74, 0, 202)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1002 and simOSid = 115)	
	UPDATE simPackageMap_DBU											
	SET apptype = 63, lictype = 2								
        WHERE simPackageId = 1002 and simOSid = 115						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1002, 63, 2, 115)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1101 and simOSid = 115)	
	UPDATE simPackageMap_DBU											
	SET apptype = 63, lictype = 0								
        WHERE simPackageId = 1101 and simOSid = 115						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1101, 63, 0, 115)

--Misc UNIX package - SIM_CSL_AT_V2_PROXY_HOST_UNIX	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1102 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 40, lictype = 0								
        WHERE simPackageId = 1102 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1102, 40, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1103 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 48, lictype = 0								
        WHERE simPackageId = 1103 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1103, 48, 0, 0)

-- SIM_CSL_AT_V2_IMAGE_UNIXFS_IDA	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1104 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 75, lictype = 0								
        WHERE simPackageId = 1104 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1104, 75, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1105 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1049, lictype = 0								
        WHERE simPackageId = 1105 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1105, 1049, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1106 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1046, lictype = 0								
        WHERE simPackageId = 1106 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1106, 1046, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1107 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1017, lictype = 0								
        WHERE simPackageId = 1107 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1107, 1017, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1109 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 66, lictype = 63								
        WHERE simPackageId = 1109 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1109, 66, 63, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1110 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1083, lictype = 0								
        WHERE simPackageId = 1110 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1110, 1083, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1112 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 85, lictype = 0								
        WHERE simPackageId = 1112 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1112, 85, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1113 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1085, lictype = 0								
        WHERE simPackageId = 1113 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1113, 1085, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1114 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 84, lictype = 133								
        WHERE simPackageId = 1114 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1114, 84, 133, 0)

-- SIM_CSL_AT_V2_SNAP_VAULT	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1115 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1029, lictype = 0								
        WHERE simPackageId = 1115 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1115, 1029, 0, 0)

-- SIM_CSL_AT_V2_ONTAP_V2_SNAP_VAULT	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1116 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1031, lictype = 0								
        WHERE simPackageId = 1116 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1116, 1031, 0, 0)

-- SIM_CSL_AT_V2_NETAPP_SNAP_VAULT	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1117 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1066, lictype = 0								
        WHERE simPackageId = 1117 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1117, 1066, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1118 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1014, lictype = 0								
        WHERE simPackageId = 1118 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1118, 1014, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1119 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1033, lictype = 0								
        WHERE simPackageId = 1119 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1119, 1033, 0, 0)

-- SIM_CSL_AT_V2_RECOVERY_DIRECTOR	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1121 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 86, lictype = 1								
        WHERE simPackageId = 1121 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1121, 86, 1, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1122 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 71, lictype = 3								
        WHERE simPackageId = 1122 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1122, 71, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1123 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 605, lictype = 0								
        WHERE simPackageId = 1123 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1123, 605, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1124 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 10, lictype = 3								
        WHERE simPackageId = 1124 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1124, 10, 3, 0)

-- SIM_CSL_AT_V2_PROXYHOST_IMAGELEVEL_UNIX	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1126 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 128, lictype = 3								
        WHERE simPackageId = 1126 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1126, 128, 3, 0)

--UNIX DB packages	
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1201 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 3, lictype = 17								
        WHERE simPackageId = 1201 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1201, 3, 17, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1202 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 5, lictype = 17								
        WHERE simPackageId = 1202 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1202, 5, 17, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1203 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 126, lictype = 0								
        WHERE simPackageId = 1203 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1203, 126, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1204 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 22, lictype = 17								
        WHERE simPackageId = 1204 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1204, 22, 17, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1205 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 61, lictype = 16								
        WHERE simPackageId = 1205 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1205, 61, 16, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1206 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 79, lictype = 16								
        WHERE simPackageId = 1206 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1206, 79, 16, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1207 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 62, lictype = 17								
        WHERE simPackageId = 1207 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1207, 62, 17, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1208 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 104, lictype = 3								
        WHERE simPackageId = 1208 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1208, 104, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1128 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 127, lictype = 0								
        WHERE simPackageId = 1128 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1128, 127, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1210 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 136, lictype = 16								
        WHERE simPackageId = 1210 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1210, 136, 16, 0)

--UNIX MA licenses
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1301 and simOSid = 23)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 1301 and simOSid = 23						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1301, 1002, 11, 23)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1301 and simOSid = 22)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 1301 and simOSid = 22						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1301, 1002, 11, 22)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1301 and simOSid = 201)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 1301 and simOSid = 201						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1301, 1002, 11, 201)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1301 and simOSid = 25)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 1301 and simOSid = 25						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1301, 1002, 11, 25)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1301 and simOSid = 205)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 1301 and simOSid = 205						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1301, 1002, 11, 205)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1302 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1004, lictype = 0								
        WHERE simPackageId = 1302 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1302, 1004, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1303 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1009, lictype = 0								
        WHERE simPackageId = 1303 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1303, 1009, 0, 0)

--UNIX QR Agents - SIM_CSL_AT_V2_REPLICATION_IDA_UNIX
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1351 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 50, lictype = 0								
        WHERE simPackageId = 1351 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1351, 50, 0, 0)

--UNIX Snapshot-based packages - SIM_CSL_AT_V2_HOTSPOT_SNAPSHOT_UNIX
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 1401 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1007, lictype = 0								
        WHERE simPackageId = 1401 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (1401, 1007, 0, 0)

--NETWARE packages
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2001 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 12, lictype = 1								
        WHERE simPackageId = 2001 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2001, 12, 1, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2002 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 10, lictype = 3								
        WHERE simPackageId = 2002 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2002, 10, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2003 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1002, lictype = 11								
        WHERE simPackageId = 2003 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2003, 1002, 11, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2004 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 71, lictype = 3								
        WHERE simPackageId = 2004 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2004, 71, 3, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2005 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 83, lictype = 63								
        WHERE simPackageId = 2005 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2005, 83, 63, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 2006 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1083, lictype = 0								
        WHERE simPackageId = 2006 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (2006, 1083, 0, 0)
 					
 IF EXISTS (Select * from simPackageMap_DBU where simPackageId = 261 and simOSid = 0)	
	UPDATE simPackageMap_DBU											
	SET apptype = 1139, lictype = 0								
        WHERE simPackageId = 261 and simOSid = 0						
 ELSE														
	INSERT INTO simPackageMap_DBU (simPackageId, apptype, lictype, simOSid)					
 	VALUES (261, 1139, 0, 0)



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simLicAppTypeV2.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simLicAppTypeV2.tbl,v $ $Id: simLicAppTypeV2.tbl,v 1.40 2011/09/06 18:39:48 hparmar Exp $";
print '... Creating Table: simLicAppTypeV2_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simLicAppTypeV2_DBU (
	id			integer	NOT NULL,
	short_name				varchar(128) NOT NULL,
	groupId 		integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simLicAppTypeV2_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--

--  Copyright (c) CommVault Systems                                           

--  All Rights Reserved                                                       

--                                                                            

--  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF CommVault Systems          

--  The copyright notice above does not evidence any                          

--  actual or intended publication of such source code.                       

--                                                                            

--  File name   : simLicAppTypeV2.script                                                          

--                                                                            

--  Description : Contains Licensetype, Shortname, GroupId

--                                                                            

--  Author      : CommVault

--                                                                           

-- ----------------------------------------------------------------------*/

-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/TblScript/simLicAppTypeV2.script,v $ $Id: simLicAppTypeV2.script,v 1.91 2015/07/15 21:16:03 xsui Exp $";

GO

DECLARE @tblRetCode integer  
-- TABLENAME simLicAppTypeV2


-- TABLENAME simLicAppTypeV2
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 1)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Server File System",groupId=3					
        WHERE id = 1									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (1, "Server File System", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 2)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Laptop and Desktop",groupId=3					
        WHERE id = 2									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (2, "Laptop and Desktop", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 3)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Application Class 1",groupId=3					
        WHERE id = 3									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (3, "Application Class 1", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 11)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="MediaAgent",groupId=2					
        WHERE id = 11									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (11, "MediaAgent", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 16)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Application Class 3",groupId=3					
        WHERE id = 16									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (16, "Application Class 3", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 17)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Application Class 2",groupId=3					
        WHERE id = 17									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (17, "Application Class 2", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 25)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="NAS Client",groupId=3					
        WHERE id = 25									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (25, "NAS Client", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 50331648)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="CommServe StorageManager",groupId=3					
        WHERE id = 50331648									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (50331648, "CommServe StorageManager", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 33554432)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="MediaAgent",groupId=3					
        WHERE id = 33554432									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (33554432, "MediaAgent", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 16777216)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="CommClient Base",groupId=3					
        WHERE id = 16777216									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (16777216, "CommClient Base", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 67108864)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="NAS MediaAgent Client Software",groupId=3					
        WHERE id = 67108864									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (67108864, "NAS MediaAgent Client Software", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 63)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="File System Archiving",groupId=4					
        WHERE id = 63									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (63, "File System Archiving", 4)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 71)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Centera Mount Path",groupId=7					
        WHERE id = 71									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (71, "Centera Mount Path", 7)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 82)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="VaultTracker Enterprise",groupId=1					
        WHERE id = 82									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (82, "VaultTracker Enterprise", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 84)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Disk Library Connector (DDO)",groupId=2					
        WHERE id = 84									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (84, "Disk Library Connector (DDO)", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 85)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Data Encryption",groupId=1					
        WHERE id = 85									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (85, "Data Encryption", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 90)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="WORM Media Support",groupId=1					
        WHERE id = 90									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (90, "WORM Media Support", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 91)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="GridStore",groupId=1					
        WHERE id = 91									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (91, "GridStore", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 102)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Boot Server on Unix",groupId=1					
        WHERE id = 102									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (102, "Boot Server on Unix", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 105)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Content Addressed Storage",groupId=1					
        WHERE id = 105									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (105, "Content Addressed Storage", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 110)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="System Recovery Server on Windows",groupId=1					
        WHERE id = 110									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (110, "System Recovery Server on Windows", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 111)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Erase Data",groupId=1					
        WHERE id = 111									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (111, "Erase Data", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 122)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="DataArchiver for MS Exchange Public Folder",groupId=4					
        WHERE id = 122									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (122, "DataArchiver for MS Exchange Public Folder", 4)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 124)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="ContinuousDataReplicator for MS Windows",groupId=6					
        WHERE id = 124									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (124, "ContinuousDataReplicator for MS Windows", 6)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 127)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Cluster Group",groupId=3					
        WHERE id = 127									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (127, "Cluster Group", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 129)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="DataArchiver for MS SharePoint",groupId=4					
        WHERE id = 129									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (129, "DataArchiver for MS SharePoint", 4)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 132)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="De-Duplication SIS Enabler",groupId=2					
        WHERE id = 132									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (132, "De-Duplication SIS Enabler", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 133)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="ContinuousDataReplicator for Unix",groupId=6					
        WHERE id = 133									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (133, "ContinuousDataReplicator for Unix", 6)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 139)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Auxiliary Copy Encryption",groupId=2					
        WHERE id = 139									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (139, "Auxiliary Copy Encryption", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 141)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Compliance Search",groupId=1					
        WHERE id = 141									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (141, "Compliance Search", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 143)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Virtual Server",groupId=3					
        WHERE id = 143									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (143, "Virtual Server", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 142)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Legal Hold",groupId=1					
        WHERE id = 142									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (142, "Legal Hold", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 157)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Offline Mining Enabler",groupId=12					
        WHERE id = 157									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (157, "Offline Mining Enabler", 12)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 163)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Hardware Snapshot Enabler",groupId=3					
        WHERE id = 163									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (163, "Hardware Snapshot Enabler", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 168)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="De-Duplication Block Level",groupId=2					
        WHERE id = 168									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (168, "De-Duplication Block Level", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 169)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="De-Duplication to Tape",groupId=2					
        WHERE id = 169									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (169, "De-Duplication to Tape", 2)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 171)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Metrics Reporting Server",groupId=13					
        WHERE id = 171									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (171, "Metrics Reporting Server", 13)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 172)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Monitored Ops Clients",groupId=13					
        WHERE id = 172									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (172, "Monitored Ops Clients", 13)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 174)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Developer License",groupId=1					
        WHERE id = 174									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (174, "Developer License", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 170)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Free License",groupId=1					
        WHERE id = 170									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (170, "Free License", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 179)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Object Link",groupId=3					
        WHERE id = 179									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (179, "Object Link", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 190)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Cloud Storage",groupId=7					
        WHERE id = 190									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (190, "Cloud Storage", 7)

--Capacity based licensing
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100002)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Data Protection Enterprise infrastructure",groupId=14					
        WHERE id = 100002									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100002, "Data Protection Enterprise infrastructure", 14)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100004)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Data Archive Enterprise infrastructure",groupId=14					
        WHERE id = 100004									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100004, "Data Archive Enterprise infrastructure", 14)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100005)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Data Protection Snapshot",groupId=14					
        WHERE id = 100005									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100005, "Data Protection Snapshot", 14)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100006)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Data Protection Replication",groupId=14					
        WHERE id = 100006									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100006, "Data Protection Replication", 14)

--10.0 licenses
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 196)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="NetApp Snap Management",groupId=3					
        WHERE id = 196									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (196, "NetApp Snap Management", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 200)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Dell Snap Management",groupId=3					
        WHERE id = 200									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (200, "Dell Snap Management", 3)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100011)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Virtual Machines",groupId=15					
        WHERE id = 100011									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100011, "Virtual Machines", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 203)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Protected Mailboxes",groupId=1					
        WHERE id = 203									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (203, "Protected Mailboxes", 1)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100013)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Archived Mailboxes",groupId=15					
        WHERE id = 100013									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100013, "Archived Mailboxes", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100014)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Content indexed Mailboxes",groupId=15					
        WHERE id = 100014									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100014, "Content indexed Mailboxes", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100015)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Disk Library Space (TB)",groupId=15					
        WHERE id = 100015									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100015, "Disk Library Space (TB)", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100016)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Dedupe Store Space (TB)",groupId=15					
        WHERE id = 100016									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100016, "Dedupe Store Space (TB)", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 201)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Content Indexing Advanced Linguistic Support",groupId=3					
        WHERE id = 201									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (201, "Content Indexing Advanced Linguistic Support", 3)

--100017- Content Indexed Object - New License.
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100017)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Content Indexed Object",groupId=15					
        WHERE id = 100017									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100017, "Content Indexed Object", 15)

--11.0
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100018)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="CPU Sockets on Hypervisor Hosts",groupId=15					
        WHERE id = 100018									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100018, "CPU Sockets on Hypervisor Hosts", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100024)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="End point users",groupId=15					
        WHERE id = 100024									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100024, "End point users", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100025)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="End point sharing users",groupId=15					
        WHERE id = 100025									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100025, "End point sharing users", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100026)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="End point E-discovery users",groupId=15					
        WHERE id = 100026									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100026, "End point E-discovery users", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100019)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Protected Virtual Machines",groupId=15					
        WHERE id = 100019									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100019, "Protected Virtual Machines", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100020)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Virtual Machine Provisioning",groupId=15					
        WHERE id = 100020									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100020, "Virtual Machine Provisioning", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100021)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Virtual Machine Archiving",groupId=15					
        WHERE id = 100021									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100021, "Virtual Machine Archiving", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100022)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Virtual Machine Snapshot",groupId=15					
        WHERE id = 100022									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100022, "Virtual Machine Snapshot", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100023)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="CPU Socket Based Virtual Machine Snapshot",groupId=15					
        WHERE id = 100023									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100023, "CPU Socket Based Virtual Machine Snapshot", 15)
				
 IF EXISTS (Select * from simLicAppTypeV2_DBU where id = 100027)				
	UPDATE simLicAppTypeV2_DBU								
	SET short_name="Application Class Virtual",groupId=15					
        WHERE id = 100027									
 ELSE											
	INSERT INTO simLicAppTypeV2_DBU (id,  short_name, groupId)				
 	VALUES (100027, "Application Class Virtual", 15)

-- END: 11.0



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simAppTypeLicTypeMap.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simAppTypeLicTypeMap.tbl,v $ $Id: simAppTypeLicTypeMap.tbl,v 1.66 2011/09/06 18:39:48 hparmar Exp $";
print '... Creating Table: simAppTypeLicTypeMap_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simAppTypeLicTypeMap_DBU (
	id				integer	NOT NULL,
	appTypeId		integer	NOT NULL,
	simLicAppType	integer	NOT NULL,
	name				varchar(128) NOT NULL,
	display_name				varchar(128) NOT NULL,
	isCellLevel	integer	NOT NULL,
	isForExpress	integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simAppTypeLicTypeMap_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--

--  Copyright (c) CommVault Systems                                           

--  All Rights Reserved                                                       

--                                                                            

--  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF CommVault Systems          

--  The copyright notice above does not evidence any                          

--  actual or intended publication of such source code.                       

--                                                                            

--  File name   :  simAppTypeLicTypeMap.script

--                                                                            

--  Description : Contains AppType, LicType, Display name and Celllevel Information

--				  

--  Author      : CommVault                                                           

--                                                                           

-- ----------------------------------------------------------------------*/

-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/TblScript/simAppTypeLicTypeMap.script,v $ $Id: simAppTypeLicTypeMap.script,v 1.101 2015/07/15 21:16:39 xsui Exp $";

GO

DECLARE @tblRetCode integer  
-- TABLENAME simAppTypeLicTypeMap


-- TABLENAME simAppTypeLicTypeMap
DELETE simAppTypeLicTypeMap_DBU
set @tblRetCode = @@error   
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 98 Table [simAppTypeLicTypeMap_DBU]'
END
-----------------------------------------------------
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 001) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 001	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (001, 1, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 002) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=11, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 002	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (002, 11, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 003) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=33, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 003	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (003, 33, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 004) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=34, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 004	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (004, 34, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 005) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=42, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 005	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (005, 42, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 006) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=43, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 006	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (006, 43, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 007) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 007	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (007, 1, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 008) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=11, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 008	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (008, 11, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 009) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=33, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 009	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (009, 33, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 010) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=34, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 010	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (010, 34, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 011) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=42, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 011	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (011, 42, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 012) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=43, simLicAppType=2, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 012	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (012, 43, 2, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 013) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=6, simLicAppType=3, name="iDataAgent for Lotus Notes Database on MS Windows", display_name="Notes Database", isCellLevel=0, isForExpress=0	
        WHERE id = 013	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (013, 6, 3, "iDataAgent for Lotus Notes Database on MS Windows", "Notes Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 014) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=59, simLicAppType=3, name="iDataAgent for Lotus Notes Database on MS Windows", display_name="Notes Database", isCellLevel=0, isForExpress=0	
        WHERE id = 014	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (014, 59, 3, "iDataAgent for Lotus Notes Database on MS Windows", "Notes Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 015) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=51, simLicAppType=17, name="Application Class 2", display_name="Notes Database", isCellLevel=0, isForExpress=0	
        WHERE id = 015	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (015, 51, 17, "Application Class 2", "Notes Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 019) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=9, simLicAppType=3, name="Application Class 1", display_name="Exchange Database", isCellLevel=0, isForExpress=0	
        WHERE id = 019	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (019, 9, 3, "Application Class 1", "Exchange Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 020) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=15, simLicAppType=3, name="Application Class 1", display_name="Exchange Database", isCellLevel=0, isForExpress=0	
        WHERE id = 020	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (020, 15, 3, "Application Class 1", "Exchange Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 021) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=53, simLicAppType=3, name="Application Class 1", display_name="Exchange Database", isCellLevel=0, isForExpress=0	
        WHERE id = 021	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (021, 53, 3, "Application Class 1", "Exchange Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 025) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=4, simLicAppType=3, name="Application Class 1", display_name="SQL Server", isCellLevel=0, isForExpress=0	
        WHERE id = 025	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (025, 4, 3, "Application Class 1", "SQL Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 026) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=16, simLicAppType=3, name="Application Class 1", display_name="SQL Server", isCellLevel=0, isForExpress=0	
        WHERE id = 026	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (026, 16, 3, "Application Class 1", "SQL Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 028) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="Microsoft Windows NT MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 028	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (028, 1002, 11, "MediaAgent", "Microsoft Windows NT MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 029) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="Hewlett Packard HP-UX MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 029	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (029, 1002, 11, "MediaAgent", "Hewlett Packard HP-UX MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 030) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="Sun Solaris MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 030	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (030, 1002, 11, "MediaAgent", "Sun Solaris MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 031) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="IBM AIX MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 031	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (031, 1002, 11, "MediaAgent", "IBM AIX MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 032) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="Linux MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 032	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (032, 1002, 11, "MediaAgent", "Linux MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 033) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=3, simLicAppType=3, name="Application Class 1", display_name="Informix", isCellLevel=0, isForExpress=0	
        WHERE id = 033	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (033, 3, 3, "Application Class 1", "Informix", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 034) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=3, simLicAppType=17, name="Application Class 2", display_name="Informix", isCellLevel=0, isForExpress=0	
        WHERE id = 034	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (034, 3, 17, "Application Class 2", "Informix", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 035) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=5, simLicAppType=3, name="Application Class 1", display_name="Sybase", isCellLevel=0, isForExpress=0	
        WHERE id = 035	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (035, 5, 3, "Application Class 1", "Sybase", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 036) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=5, simLicAppType=17, name="Application Class 2", display_name="Sybase", isCellLevel=0, isForExpress=0	
        WHERE id = 036	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (036, 5, 17, "Application Class 2", "Sybase", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 038) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=21, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 038	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (038, 21, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 039) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=29, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 039	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (039, 29, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 040) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=12, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 040	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (040, 12, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 041) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=10, simLicAppType=3, name="Application Class 1", display_name="Novell Directory Services", isCellLevel=0, isForExpress=0	
        WHERE id = 041	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (041, 10, 3, "Application Class 1", "Novell Directory Services", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 046) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=17, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 046	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (046, 17, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 037) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=19, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 037	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (037, 19, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 047) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=22, simLicAppType=3, name="Application Class 1", display_name="Oracle", isCellLevel=0, isForExpress=0	
        WHERE id = 047	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (047, 22, 3, "Application Class 1", "Oracle", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 048) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=22, simLicAppType=17, name="Application Class 2", display_name="Oracle", isCellLevel=0, isForExpress=0	
        WHERE id = 048	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (048, 22, 17, "Application Class 2", "Oracle", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 051) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=13, simLicAppType=25, name="NAS Client", display_name="NAS", isCellLevel=0, isForExpress=0	
        WHERE id = 051	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (051, 13, 25, "NAS Client", "NAS", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 061) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=36, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 061	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (061, 36, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 065) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=41, simLicAppType=3, name="Application Class 1", display_name="Active Directory", isCellLevel=0, isForExpress=0	
        WHERE id = 065	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (065, 41, 3, "Application Class 1", "Active Directory", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 068) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name="MediaAgent", display_name="MediaAgent on Tru64", isCellLevel=0, isForExpress=0	
        WHERE id = 068	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (068, 1002, 11, "MediaAgent", "MediaAgent on Tru64", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 082) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=62, simLicAppType=17, name="Application Class 2", display_name="DB2", isCellLevel=0, isForExpress=0	
        WHERE id = 082	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (082, 62, 17, "Application Class 2", "DB2", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 083) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=58, simLicAppType=63, name="File System Archiving", display_name="File Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 083	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (083, 58, 63, "File System Archiving", "File Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 084) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=61, simLicAppType=16, name="Application Class 3", display_name="SAP for Oracle", isCellLevel=0, isForExpress=0	
        WHERE id = 084	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (084, 61, 16, "Application Class 3", "SAP for Oracle", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 091) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1010, simLicAppType=71, name="Centera Mount Path", display_name="Centera", isCellLevel=0, isForExpress=0	
        WHERE id = 091	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (091, 1010, 71, "Centera Mount Path", "Centera", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 092) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=11, name=11, display_name="MediaAgent on Novell Netware", isCellLevel=0, isForExpress=0	
        WHERE id = 092	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (092, 1002, 11, 11, "MediaAgent on Novell Netware", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 093) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=37, simLicAppType=3, name="Application Class 1", display_name="DB2", isCellLevel=0, isForExpress=0	
        WHERE id = 093	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (093, 37, 3, "Application Class 1", "DB2", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 095) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1000, simLicAppType=50331648, name="CommServe StorageManager", display_name="CommServe StorageManager", isCellLevel=0, isForExpress=0	
        WHERE id = 095	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (095, 1000, 50331648, "CommServe StorageManager", "CommServe StorageManager", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 096) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1002, simLicAppType=33554432, name="MediaAgent", display_name="MediaAgent", isCellLevel=0, isForExpress=0	
        WHERE id = 096	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (096, 1002, 33554432, "MediaAgent", "MediaAgent", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 097) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1001, simLicAppType=16777216, name="CommClient Base", display_name="iDataAgent Base", isCellLevel=0, isForExpress=0	
        WHERE id = 097	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (097, 1001, 16777216, "CommClient Base", "iDataAgent Base", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 098) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1003, simLicAppType=67108864, name="NAS MediaAgent Client Software", display_name="NetApp NAS", isCellLevel=0, isForExpress=0	
        WHERE id = 098	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (098, 1003, 67108864, "NAS MediaAgent Client Software", "NetApp NAS", 0, 0)

-- START : Galaxy 4.5
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 100) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=63, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 100	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (100, 63, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 101) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=64, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 101	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (101, 64, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 103) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=61, simLicAppType=16, name="Application Class 3", display_name="SAP for Oracle", isCellLevel=0, isForExpress=0	
        WHERE id = 103	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (103, 61, 16, "Application Class 3", "SAP for Oracle", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 106) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1019, simLicAppType=82, name="VaultTracker Enterprise", display_name="Vault Tracker Enterprise", isCellLevel=1, isForExpress=0	
        WHERE id = 106	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (106, 1019, 82, "VaultTracker Enterprise", "Vault Tracker Enterprise", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 107) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=66, simLicAppType=63, name="File System Archiving", display_name="File Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 107	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (107, 66, 63, "File System Archiving", "File Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 108) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1020, simLicAppType=84, name="Disk Library Connector (DDO)", display_name="Disk Library Connector (DDO)", isCellLevel=0, isForExpress=0	
        WHERE id = 108	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (108, 1020, 84, "Disk Library Connector (DDO)", "Disk Library Connector (DDO)", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 109) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1021, simLicAppType=85, name="Data Encryption", display_name="Data Encryption", isCellLevel=1, isForExpress=1	
        WHERE id = 109	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (109, 1021, 85, "Data Encryption", "Data Encryption", 1, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 115) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1025, simLicAppType=90, name="WORM Media Support", display_name="WORM Support", isCellLevel=1, isForExpress=1	
        WHERE id = 115	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (115, 1025, 90, "WORM Media Support", "WORM Support", 1, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 116) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1026, simLicAppType=91, name="GridStore", display_name="Grid Store", isCellLevel=1, isForExpress=0	
        WHERE id = 116	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (116, 1026, 91, "GridStore", "Grid Store", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 117) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=69, simLicAppType=3, name="Application Class 1", display_name="SharePoint Server Database", isCellLevel=0, isForExpress=0	
        WHERE id = 117	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (117, 69, 3, "Application Class 1", "SharePoint Server Database", 0, 0)

-- END : Galaxy 4.5 just 

-- START : Galaxy 5.9 just 
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 118) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=70, simLicAppType=3, name="iDataAgent for Microsoft SQL Server 2000", display_name="SQL Server", isCellLevel=0, isForExpress=0	
        WHERE id = 118	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (118, 70, 3, "iDataAgent for Microsoft SQL Server 2000", "SQL Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 119) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=71, simLicAppType=3, name="Application Class 1", display_name="GroupWise DB", isCellLevel=0, isForExpress=0	
        WHERE id = 119	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (119, 71, 3, "Application Class 1", "GroupWise DB", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 121) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=73, simLicAppType=63, name="File System Archiving", display_name="File Share Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 121	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (121, 73, 63, "File System Archiving", "File Share Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 122) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=74, simLicAppType=1, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 122	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (122, 74, 1, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 128) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=77, simLicAppType=17, name="Application Class 2", display_name="Notes Database", isCellLevel=0, isForExpress=0	
        WHERE id = 128	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (128, 77, 17, "Application Class 2", "Notes Database", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 130) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1033, simLicAppType=102, name="Boot Server on Unix", display_name="1-Touch Server for Unix", isCellLevel=1, isForExpress=0	
        WHERE id = 130	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (130, 1033, 102, "Boot Server on Unix", "1-Touch Server for Unix", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 131) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=79, simLicAppType=16, name="Application Class 3", display_name="SAP for MAX DB", isCellLevel=0, isForExpress=0	
        WHERE id = 131	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (131, 79, 16, "Application Class 3", "SAP for MAX DB", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 132) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=79, simLicAppType=16, name="Application Class 3", display_name="SAP for MAX DB", isCellLevel=0, isForExpress=0	
        WHERE id = 132	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (132, 79, 16, "Application Class 3", "SAP for MAX DB", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 133) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1035, simLicAppType=105, name="Content Addressed Storage", display_name="Content Addressed Storage", isCellLevel=1, isForExpress=0	
        WHERE id = 133	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (133, 1035, 105, "Content Addressed Storage", "Content Addressed Storage", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 138) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1040, simLicAppType=110, name="System Recovery Server on Windows", display_name="1-Touch Server for Windows", isCellLevel=1, isForExpress=0	
        WHERE id = 138	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (138, 1040, 110, "System Recovery Server on Windows", "1-Touch Server for Windows", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 139) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1041, simLicAppType=111, name="Erase Data", display_name="Erase Data", isCellLevel=1, isForExpress=0	
        WHERE id = 139	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (139, 1041, 111, "Erase Data", "Erase Data", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 149) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=81, simLicAppType=3, name="Application Class 1", display_name="SQL Server", isCellLevel=0, isForExpress=0	
        WHERE id = 149	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (149, 81, 3, "Application Class 1", "SQL Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 150) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=82, simLicAppType=122, name="DataArchiver for MS Exchange Public Folder", display_name="Exchange PF Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 150	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (150, 82, 122, "DataArchiver for MS Exchange Public Folder", "Exchange PF Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 151) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=83, simLicAppType=63, name="File System Archiving", display_name="File Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 151	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (151, 83, 63, "File System Archiving", "File Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 152) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=84, simLicAppType=124, name="ContinuousDataReplicator for MS Windows", display_name="Continuous Data Replicator", isCellLevel=0, isForExpress=1	
        WHERE id = 152	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (152, 84, 124, "ContinuousDataReplicator for MS Windows", "Continuous Data Replicator", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 154) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=86, simLicAppType=1, name="Server File System", display_name="OES File System", isCellLevel=0, isForExpress=0	
        WHERE id = 154	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (154, 86, 1, "Server File System", "OES File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 156) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 156	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (156, 1, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 157) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=11, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 157	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (157, 11, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 158) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=33, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 158	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (158, 33, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 159) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=34, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 159	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (159, 34, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 160) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=42, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 160	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (160, 42, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 161) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=43, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 161	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (161, 43, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 162) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 162	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (162, 1, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 163) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=11, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 163	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (163, 11, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 164) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=33, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 164	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (164, 33, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 165) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=34, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 165	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (165, 34, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 166) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=42, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 166	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (166, 42, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 167) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=43, simLicAppType=127, name="Laptop and Desktop", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 167	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (167, 43, 127, "Laptop and Desktop", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 168) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=19, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 168	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (168, 19, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 169) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=21, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 169	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (169, 21, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 170) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=29, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 170	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (170, 29, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 171) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=12, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 171	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (171, 12, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 172) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=18, simLicAppType=127, name="iDataAgent for Hewlett Packard HP-UX 64bit File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 172	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (172, 18, 127, "iDataAgent for Hewlett Packard HP-UX 64bit File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 173) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=20, simLicAppType=127, name="iDataAgent for Sun Solaris 64bit File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 173	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (173, 20, 127, "iDataAgent for Sun Solaris 64bit File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 174) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=17, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 174	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (174, 17, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 175) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=36, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 175	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (175, 36, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 176) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=63, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 176	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (176, 63, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 177) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=64, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 177	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (177, 64, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 178) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=74, simLicAppType=127, name="Server File System", display_name="File System", isCellLevel=0, isForExpress=0	
        WHERE id = 178	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (178, 74, 127, "Server File System", "File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 181) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=86, simLicAppType=127, name="Server File System", display_name="OES File System", isCellLevel=0, isForExpress=0	
        WHERE id = 181	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (181, 86, 127, "Server File System", "OES File System", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 184) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=89, simLicAppType=129, name="DataArchiver for MS SharePoint", display_name="MS Sharepoint Archiver", isCellLevel=0, isForExpress=0	
        WHERE id = 184	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (184, 89, 129, "DataArchiver for MS SharePoint", "MS Sharepoint Archiver", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 186) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=91, simLicAppType=3, name="Application Class 1", display_name="DPM", isCellLevel=0, isForExpress=0	
        WHERE id = 186	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (186, 91, 3, "Application Class 1", "DPM", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 187) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1076, simLicAppType=132, name="De-Duplication SIS Enabler", display_name="Data De-Duplication Enabler", isCellLevel=0, isForExpress=0	
        WHERE id = 187	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (187, 1076, 132, "De-Duplication SIS Enabler", "Data De-Duplication Enabler", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 188) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=84, simLicAppType=133, name="ContinuousDataReplicator for Unix", display_name="Continuous Data Replicator on Unix", isCellLevel=0, isForExpress=0	
        WHERE id = 188	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (188, 84, 133, "ContinuousDataReplicator for Unix", "Continuous Data Replicator on Unix", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 194) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1077, simLicAppType=139, name="Auxiliary Copy Encryption", display_name="Auxiliary Copy Encryption", isCellLevel=0, isForExpress=0	
        WHERE id = 194	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (194, 1077, 139, "Auxiliary Copy Encryption", "Auxiliary Copy Encryption", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 196) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1075, simLicAppType=141, name="Compliance Search", display_name="Compliance Search", isCellLevel=1, isForExpress=0	
        WHERE id = 196	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (196, 1075, 141, "Compliance Search", "Compliance Search", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 197) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1079, simLicAppType=142, name="Legal Hold", display_name="Legal Hold", isCellLevel=1, isForExpress=0	
        WHERE id = 197	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (197, 1079, 142, "Legal Hold", "Legal Hold", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 198) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=106, simLicAppType=143, name="Virtual Server", display_name="Virtual Server", isCellLevel=0, isForExpress=1	
        WHERE id = 198	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (198, 106, 143, "Virtual Server", "Virtual Server", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 213) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=104, simLicAppType=3, name="Application Class 1", display_name="MySQL", isCellLevel=0, isForExpress=0	
        WHERE id = 213	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (213, 104, 3, "Application Class 1", "MySQL", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 215) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1087, simLicAppType=157, name="Offline Mining Enabler", display_name="Offline Mining Enabler for Exchange", isCellLevel=0, isForExpress=1	
        WHERE id = 215	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (215, 1087, 157, "Offline Mining Enabler", "Offline Mining Enabler for Exchange", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 216) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1089, simLicAppType=157, name="Offline Mining Enabler", display_name="Offline Mining Enabler for SharePoint", isCellLevel=0, isForExpress=1	
        WHERE id = 216	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (216, 1089, 157, "Offline Mining Enabler", "Offline Mining Enabler for SharePoint", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 217) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1091, simLicAppType=3, name="Application Class 1", display_name="Office Communications Server", isCellLevel=0, isForExpress=0	
        WHERE id = 217	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (217, 1091, 3, "Application Class 1", "Office Communications Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 218) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1092, simLicAppType=163, name="Hardware Snapshot Enabler", display_name="Hardware Snapshot Enabler", isCellLevel=0, isForExpress=0	
        WHERE id = 218	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (218, 1092, 163, "Hardware Snapshot Enabler", "Hardware Snapshot Enabler", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 222) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1099, simLicAppType=157, name="Offline Mining Enabler", display_name="Offline Mining Enabler for Active Directory", isCellLevel=0, isForExpress=1	
        WHERE id = 222	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (222, 1099, 157, "Offline Mining Enabler", "Offline Mining Enabler for Active Directory", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 223) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1100, simLicAppType=168, name="De-Duplication Block Level", display_name="Block Level De-Duplication", isCellLevel=0, isForExpress=1	
        WHERE id = 223	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (223, 1100, 168, "De-Duplication Block Level", "Block Level De-Duplication", 0, 1)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 224) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1101, simLicAppType=169, name="De-Duplication to Tape", display_name="Tape De-Duplication", isCellLevel=0, isForExpress=0	
        WHERE id = 224	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (224, 1101, 169, "De-Duplication to Tape", "Tape De-Duplication", 0, 0)

--9.0 licenses
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 225) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=121, simLicAppType=171, name="Metrics Reporting Server", display_name="Metrics Reporting Server", isCellLevel=0, isForExpress=0	
        WHERE id = 225	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (225, 121, 171, "Metrics Reporting Server", "Metrics Reporting Server", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 226) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=122, simLicAppType=172, name="Monitored Ops Clients", display_name="Monitored Ops Client", isCellLevel=0, isForExpress=0	
        WHERE id = 226	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (226, 122, 172, "Monitored Ops Clients", "Monitored Ops Client", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 228) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1103, simLicAppType=174, name="Developer License", display_name="Developer License", isCellLevel=1, isForExpress=0	
        WHERE id = 228	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (228, 1103, 174, "Developer License", "Developer License", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 233) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=124, simLicAppType=179, name="Object Link", display_name="Object Link", isCellLevel=0, isForExpress=0	
        WHERE id = 233	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (233, 124, 179, "Object Link", "Object Link", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 232) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=125, simLicAppType=3, name="Application Class 1", display_name="PostgreSQL", isCellLevel=0, isForExpress=0	
        WHERE id = 232	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (232, 125, 3, "Application Class 1", "PostgreSQL", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 238) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=128, simLicAppType=3, name="Application Class 1", display_name="Documentum", isCellLevel=0, isForExpress=0	
        WHERE id = 238	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (238, 128, 3, "Application Class 1", "Documentum", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 244) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1113, simLicAppType=190, name="Cloud Storage", display_name="Cloud Storage", isCellLevel=0, isForExpress=0	
        WHERE id = 244	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (244, 1113, 190, "Cloud Storage", "Cloud Storage", 0, 0)

--Capacity based licensing
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 100002) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1119, simLicAppType=100002, name="Data Protection Enterprise infrastructure", display_name="Data Protection Enterprise infrastructure", isCellLevel=1, isForExpress=0	
        WHERE id = 100002	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (100002, 1119, 100002, "Data Protection Enterprise infrastructure", "Data Protection Enterprise infrastructure", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 100004) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1121, simLicAppType=100004, name="Data Archive Enterprise infrastructure", display_name="Data Archive Enterprise infrastructure", isCellLevel=1, isForExpress=0	
        WHERE id = 100004	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (100004, 1121, 100004, "Data Archive Enterprise infrastructure", "Data Archive Enterprise infrastructure", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 100005) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1143, simLicAppType=100005, name="Data Protection Snapshot", display_name="Data Protection Snapshot", isCellLevel=1, isForExpress=0	
        WHERE id = 100005	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (100005, 1143, 100005, "Data Protection Snapshot", "Data Protection Snapshot", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 100006) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1144, simLicAppType=100006, name="Data Protection Replication", display_name="Data Protection Replication", isCellLevel=1, isForExpress=0	
        WHERE id = 100006	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (100006, 1144, 100006, "Data Protection Replication", "Data Protection Replication", 1, 0)

--10.0 licenses
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 251) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1123, simLicAppType=196, name="NetApp Snap Management", display_name="NetApp Snap Management", isCellLevel=0, isForExpress=0	
        WHERE id = 251	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (251, 1123, 196, "NetApp Snap Management", "NetApp Snap Management", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 255) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1128, simLicAppType=200, name="Dell Snap Management", display_name="Dell Snap Management", isCellLevel=0, isForExpress=0	
        WHERE id = 255	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (255, 1128, 200, "Dell Snap Management", "Dell Snap Management", 0, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110001) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1129, simLicAppType=100011, name="Virtual Machines", display_name="Virtual Machines", isCellLevel=1, isForExpress=0	
        WHERE id = 110001	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110001, 1129, 100011, "Virtual Machines", "Virtual Machines", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110002) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1130, simLicAppType=203, name="Protected Mailboxes", display_name="Protected Mailboxes", isCellLevel=1, isForExpress=0	
        WHERE id = 110002	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110002, 1130, 203, "Protected Mailboxes", "Protected Mailboxes", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110003) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1131, simLicAppType=100013, name="Archived Mailboxes", display_name="Archived Mailboxes", isCellLevel=1, isForExpress=0	
        WHERE id = 110003	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110003, 1131, 100013, "Archived Mailboxes", "Archived Mailboxes", 1, 0)

-- 100017 - Content Indexed Objects
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110007) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1138, simLicAppType=100017, name="Content Indexed Object", display_name="Content Indexed Object", isCellLevel=1, isForExpress=0	
        WHERE id = 110007	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110007, 1138, 100017, "Content Indexed Object", "Content Indexed Object", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110004) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1132, simLicAppType=100014, name="Content indexed Mailboxes", display_name="Content indexed Mailboxes", isCellLevel=1, isForExpress=0	
        WHERE id = 110004	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110004, 1132, 100014, "Content indexed Mailboxes", "Content indexed Mailboxes", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110005) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1133, simLicAppType=100015, name="Disk Library Space (TB)", display_name="Disk Library Space (TB)", isCellLevel=1, isForExpress=0	
        WHERE id = 110005	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110005, 1133, 100015, "Disk Library Space (TB)", "Disk Library Space (TB)", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110006) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1134, simLicAppType=100016, name="Dedupe Store Space (TB)", display_name="Dedupe Store Space (TB)", isCellLevel=1, isForExpress=0	
        WHERE id = 110006	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110006, 1134, 100016, "Dedupe Store Space (TB)", "Dedupe Store Space (TB)", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 256) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1135, simLicAppType=201, name="Content Indexing Advanced Linguistic Support", display_name="Content Indexing Advanced Linguistic Support", isCellLevel=0, isForExpress=1	
        WHERE id = 256	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (256, 1135, 201, "Content Indexing Advanced Linguistic Support", "Content Indexing Advanced Linguistic Support", 0, 1)

--SAP -HANA
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 258) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=135, simLicAppType=16, name="Application Class 3", display_name="SAP HANA", isCellLevel=0, isForExpress=1	
        WHERE id = 258	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (258, 135, 16, "Application Class 3", "SAP HANA", 0, 1)

--11.0
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110008) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1146, simLicAppType=100018, name="CPU Sockets on Hypervisor Hosts", display_name="CPU Sockets on Hypervisor Hosts", isCellLevel=1, isForExpress=0	
        WHERE id = 110008	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110008, 1146, 100018, "CPU Sockets on Hypervisor Hosts", "CPU Sockets on Hypervisor Hosts", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110014) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1152, simLicAppType=100024, name="End point users", display_name="End point users", isCellLevel=1, isForExpress=0	
        WHERE id = 110014	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110014, 1152, 100024, "End point users", "End point users", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110015) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1153, simLicAppType=100025, name="End point sharing users", display_name="End point sharing users", isCellLevel=1, isForExpress=0	
        WHERE id = 110015	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110015, 1153, 100025, "End point sharing users", "End point sharing users", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110016) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1154, simLicAppType=100026, name="End point E-discovery users", display_name="End point E-discovery users", isCellLevel=1, isForExpress=0	
        WHERE id = 110016	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110016, 1154, 100026, "End point E-discovery users", "End point E-discovery users", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110009) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1147, simLicAppType=100019, name="Protected Virtual Machines", display_name="Protected Virtual Machines", isCellLevel=1, isForExpress=0	
        WHERE id = 110009	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110009, 1147, 100019, "Protected Virtual Machines", "Protected Virtual Machines", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110010) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1148, simLicAppType=100020, name="Virtual Machine Provisioning", display_name="Virtual Machine Provisioning", isCellLevel=1, isForExpress=0	
        WHERE id = 110010	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110010, 1148, 100020, "Virtual Machine Provisioning", "Virtual Machine Provisioning", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110011) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1149, simLicAppType=100021, name="Virtual Machine Archiving", display_name="Virtual Machine Archiving", isCellLevel=1, isForExpress=0	
        WHERE id = 110011	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110011, 1149, 100021, "Virtual Machine Archiving", "Virtual Machine Archiving", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110012) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1150, simLicAppType=100022, name="Virtual Machine Snapshot", display_name="Virtual Machine Snapshot", isCellLevel=1, isForExpress=0	
        WHERE id = 110012	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110012, 1150, 100022, "Virtual Machine Snapshot", "Virtual Machine Snapshot", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110013) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1151, simLicAppType=100023, name="CPU Socket Based Virtual Machine Snapshot", display_name="CPU Socket Based Virtual Machine Snapshot", isCellLevel=1, isForExpress=0	
        WHERE id = 110013	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110013, 1151, 100023, "CPU Socket Based Virtual Machine Snapshot", "CPU Socket Based Virtual Machine Snapshot", 1, 0)
 
 IF EXISTS (Select * from simAppTypeLicTypeMap_DBU where id = 110017) 		
	UPDATE simAppTypeLicTypeMap_DBU		
	SET appTypeId=1161, simLicAppType=100027, name="Application Class Virtual", display_name="Application Class Virtual", isCellLevel=1, isForExpress=0	
        WHERE id = 110017	
 ELSE
	INSERT INTO simAppTypeLicTypeMap_DBU (id, appTypeId, simLicAppType, name, display_name, isCellLevel, isForExpress)	
 	VALUES (110017, 1161, 100027, "Application Class Virtual", "Application Class Virtual", 1, 0)



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simOEM.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simOEM.tbl,v $ $Id: simOEM.tbl,v 1.3 2007/12/16 16:38:54 hmishra Exp $";
print '... Creating Table: simOEM_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simOEM_DBU (
	OEMId			integer	NOT NULL,
	OEMName				nvarchar(255) NOT NULL,
	ExpressFlag		integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simOEM_DBU]'
END
-----------------------------------------------------


GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simMiniBrand.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simMiniBrand.tbl,v $ $Id: simMiniBrand.tbl,v 1.5 2008/08/08 14:37:53 xsui Exp $";
print '... Creating Table: simMiniBrand_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simMiniBrand_DBU (
	MiniBrandId		integer	NOT NULL,
	OEMId			integer	NOT NULL,
	name				varchar(255) NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simMiniBrand_DBU]'
END
-----------------------------------------------------

create unique index simMiniBrand_DBU_2 on simMiniBrand_DBU (MiniBrandId, OEMId)

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simMiniBrand_DBU]'
END
----------


GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simApptypeGroupIDMap.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simApptypeGroupIDMap.tbl,v $ $Id: simApptypeGroupIDMap.tbl,v 1.3 2008/06/17 16:35:35 hmishra Exp $";
print '... Creating Table: simApptypeGroupIDMap_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simApptypeGroupIDMap_DBU (
	AppTypeID		integer	NOT NULL,
	GroupID			integer	NOT NULL,
	GroupName				nvarchar(255) NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simApptypeGroupIDMap_DBU]'
END
-----------------------------------------------------


GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simAppTypeDependency.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simAppTypeDependency.tbl,v $ $Id: simAppTypeDependency.tbl,v 1.2 2008/06/13 19:59:21 g8builder Exp $";
print '... Creating Table: simAppTypeDependency_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simAppTypeDependency_DBU (
	AppTypeID		integer	NOT NULL,
	GroupID			integer	NOT NULL,
	IsVirtual		integer	NOT NULL,
	ReleaseID		integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simAppTypeDependency_DBU]'
END
-----------------------------------------------------


GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simApptypeProp.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simApptypeProp.tbl,v $ $Id: simApptypeProp.tbl,v 1.7 2009/06/19 00:21:07 hmishra Exp $";
print '... Creating Table: simApptypeProp_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simApptypeProp_DBU (
	componentNameId		integer	NOT NULL,
	attrName				nvarchar(1024) NOT NULL,
	attrType			integer	NOT NULL,
	attrVal				nvarchar(1024) NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simApptypeProp_DBU]'
END
-----------------------------------------------------

--create index simApptypeProp_idx2 on simApptypeProp (componentNameId)
 
                
set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simApptypeProp_DBU]'
END
-----------------------------------------------------

SET QUOTED_IDENTIFIER OFF

-- ALLOW_COMMENTS_BELOW_HERE:

-- ----------------------------------------------------------------------

--                                                                      

--           Copyright (c) 1998  CommVault Systems, Inc.                

--                  All rights reserved.                                

--                                                                      

--                                                                   

--        This is unpublished proprietary source code of CommVault  

--        Systems, Inc. The copyright notice above does not evidence 

--        any actual or intended publication of such source code. 

-- ----------------------------------------------------------------------*/

-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/TblScript/simApptypeProp.script,v $ $Id: simApptypeProp.script,v 1.60 2015/07/15 21:16:11 xsui Exp $";
-- TABLENAME simApptypeProp


-- TABLENAME simApptypeProp

SET NOCOUNT ON

-- File system specific properties.
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 43 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 43 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (43, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 43 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 43 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (43, "OSDowngadable", 2, '1')

-- SQL specific properties
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "HiddenBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "HiddenBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "HiddenBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "DonotCreateSubClientAtInstallTime")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "DonotCreateSubClientAtInstallTime"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "DonotCreateSubClientAtInstallTime", 2, '1')

-- WBA specific properties
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 107 and attrName = "HiddenBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 107 and attrName = "HiddenBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (107, "HiddenBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 107 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 107 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (107, "HiddenSubClient", 2, '1')

--Oracle specific properties
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 22 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 22 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (22, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 22 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 22 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (22, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 22 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 22 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (22, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 22 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 22 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (22, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 127 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 127 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "DonotCreateSubClientAtInstallTime")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 127 and attrName = "DonotCreateSubClientAtInstallTime"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "DonotCreateSubClientAtInstallTime", 2, '1')

--Documentum properties
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 128 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 128 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (128, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 128 and attrName = "HiddenBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 128 and attrName = "HiddenBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (128, "HiddenBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 128 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 128 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (128, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 128 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForDocumentum"								
        WHERE componentNameId = 128 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (128, "DefaultInstanceName", 1, "defaultDummyInstanceForDocumentum")

-- DonotCreateAppIDAtInstallTime property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 106 and attrName = "DonotCreateSubClientAtInstallTime")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 106 and attrName = "DonotCreateSubClientAtInstallTime"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (106, "DonotCreateSubClientAtInstallTime", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 602 and attrName = "DonotCreateSubClientAtInstallTime")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 602 and attrName = "DonotCreateSubClientAtInstallTime"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (602, "DonotCreateSubClientAtInstallTime", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 58 and attrName = "DonotCreateSubClientAtInstallTime")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 58 and attrName = "DonotCreateSubClientAtInstallTime"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (58, "DonotCreateSubClientAtInstallTime", 2, '1')

-- HiddenSubClient property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 84 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 84 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (84, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 72 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 72 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (72, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 58 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 58 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (58, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 127 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 48 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 48 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (48, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 24 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 24 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (24, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 28 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 28 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (28, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 13 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 13 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (13, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 25 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 25 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (25, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 40 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 40 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (40, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 47 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 47 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (47, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 50 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 50 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (50, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 65 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 65 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (65, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 66 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 66 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (66, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 67 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 67 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (67, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 68 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 68 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (68, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 73 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 73 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (73, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 75 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 75 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (75, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 76 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 76 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (76, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 83 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 83 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (83, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 87 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 87 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (87, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 89 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 89 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (89, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 106 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 106 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (106, "HiddenSubClient", 2, '1')

--QNET properties
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 121 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 121 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (121, "HiddenSubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 122 and attrName = "HiddenSubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 122 and attrName = "HiddenSubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (122, "HiddenSubClient", 2, '1')

-- HiddenBackupSet property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 84 and attrName = "HiddenBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 84 and attrName = "HiddenBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (84, "HiddenBackupSet", 2, '1')

-- DummySubClient property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 3 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 3 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (3, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 5 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 5 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (5, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 126 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 126 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (126, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 61 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 61 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (61, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 79 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 79 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (79, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 37 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 37 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (37, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 62 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 62 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (62, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 104 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 104 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (104, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 125 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 125 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (125, "DummySubClient", 2, '1')

-- DummyBackupSet property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 3 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 3 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (3, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 5 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 5 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (5, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 126 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 126 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (126, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 61 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 61 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (61, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 79 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 79 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (79, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 37 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 37 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (37, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 62 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 62 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (62, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 104 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 104 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (104, "DummySubClient", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 125 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 125 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (125, "DummySubClient", 2, '1')

-- DummyInstance property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 3 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 3 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (3, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 5 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 5 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (5, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 126 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 126 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (126, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 61 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 61 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (61, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 79 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 79 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (79, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 37 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 37 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (37, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 62 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 62 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (62, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 104 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 104 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (104, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 125 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 125 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (125, "DummyInstance", 2, '1')

-- SCAssocCheckNeeded property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 47 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 47 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (47, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 25 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 25 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (25, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 50 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 50 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (50, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 40 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 40 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (40, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 76 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 76 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (76, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 87 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 87 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (87, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 48 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 48 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (48, "SCAssocCheckNeeded", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 24 and attrName = "SCAssocCheckNeeded")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 24 and attrName = "SCAssocCheckNeeded"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (24, "SCAssocCheckNeeded", 2, '1')

-- OSDowngadable property 
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 8 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 8 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (8, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 14 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 14 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (14, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 7 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 7 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (7, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 9 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 9 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (9, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 15 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 15 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (15, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 57 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 57 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (57, "OSDowngadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 45 and attrName = "OSDowngadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 45 and attrName = "OSDowngadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (45, "OSDowngadable", 2, '1')

-- OSUpgadable property 
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 14 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 14 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (14, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 43 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 43 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (43, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 59 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 59 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (59, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 60 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 60 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (60, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 54 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 54 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (54, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 45 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 45 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (45, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 56 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 56 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (56, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 67 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 67 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (67, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 86 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 86 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (86, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 68 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 68 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (68, "OSUpgadable", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 77 and attrName = "OSUpgadable")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 77 and attrName = "OSUpgadable"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (77, "OSUpgadable", 2, '1')

-- DefaultInstanceName property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 3 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 3 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (3, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 5 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 5 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (5, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 126 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 126 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (126, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 104 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 104 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (104, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 125 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 125 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (125, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 37 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 37 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (37, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 62 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 62 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (62, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 601 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForOracle"								
        WHERE componentNameId = 601 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (601, "DefaultInstanceName", 1, "defaultDummyInstanceForOracle")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 61 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForSAP"								
        WHERE componentNameId = 61 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (61, "DefaultInstanceName", 1, "defaultDummyInstanceForSAP")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 79 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForSAP"								
        WHERE componentNameId = 79 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (79, "DefaultInstanceName", 1, "defaultDummyInstanceForSAP")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 650 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 650 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (650, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 651 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 651 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (651, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 652 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 652 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (652, "DefaultInstanceName", 1, "defaultInstance")

-- DefaultBackupSetName property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 93 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultContentIndexSet"								
        WHERE componentNameId = 93 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (93, "DefaultBackupSetName", 1, "defaultContentIndexSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 105 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultContentIndexSet"								
        WHERE componentNameId = 105 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (105, "DefaultBackupSetName", 1, "defaultContentIndexSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 58 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 58 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (58, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 127 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 66 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 66 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (66, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 83 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 83 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (83, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 73 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 73 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (73, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 106 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 106 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (106, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 90 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 90 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (90, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 45 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 45 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (45, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 56 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 56 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (56, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 57 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 57 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (57, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 67 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 67 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (67, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 68 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 68 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (68, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 82 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 82 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (82, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 89 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultArchiveSet"								
        WHERE componentNameId = 89 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (89, "DefaultBackupSetName", 1, "defaultArchiveSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 37 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyBackupSet"								
        WHERE componentNameId = 37 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (37, "DefaultBackupSetName", 1, "defaultDummyBackupSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 62 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyBackupSet"								
        WHERE componentNameId = 62 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (62, "DefaultBackupSetName", 1, "defaultDummyBackupSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 650 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyBackupSet"								
        WHERE componentNameId = 650 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (650, "DefaultBackupSetName", 1, "defaultDummyBackupSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 651 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyBackupSet"								
        WHERE componentNameId = 651 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (651, "DefaultBackupSetName", 1, "defaultDummyBackupSet")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 652 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyBackupSet"								
        WHERE componentNameId = 652 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (652, "DefaultBackupSetName", 1, "defaultDummyBackupSet")

-- UseDefaultSubclientContentsFromAppMgr property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 35 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 35 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (35, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 44 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 44 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (44, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 46 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 46 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (46, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 78 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 78 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (78, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 55 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 55 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (55, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 82 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 82 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (82, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 10 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 10 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (10, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 12 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 12 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (12, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 13 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 13 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (13, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 19 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 19 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (19, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 20 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 20 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (20, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 36 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 36 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (36, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 21 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 21 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (21, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 17 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 17 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (17, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 18 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 18 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (18, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 29 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 29 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (29, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 25 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 25 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (25, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 28 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 28 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (28, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 24 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 24 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (24, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 41 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 41 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (41, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 40 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 40 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (40, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 43 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 43 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (43, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 48 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 48 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (48, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 47 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 47 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (47, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 50 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 50 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (50, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 58 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 58 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (58, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 63 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 63 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (63, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 66 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 66 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (66, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 83 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 83 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (83, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 93 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 93 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (93, "UseDefaultSubclientContentsFromAppMgr", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 600 and attrName = "UseDefaultSubclientContentsFromAppMgr")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 600 and attrName = "UseDefaultSubclientContentsFromAppMgr"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (600, "UseDefaultSubclientContentsFromAppMgr", 2, '1')

-- DoNotConsumeLicense property 
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 0 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 0 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (0, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 650 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 650 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (650, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 651 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 651 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (651, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 652 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 652 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (652, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1014 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1014 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1014, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1015 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1015 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1015, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1018 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1018 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1018, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1027 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1027 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1027, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1030 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1030 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1030, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1032 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1032 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1032, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1043 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1043 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1043, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1045 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1045 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1045, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1046 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1046 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1046, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1047 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1047 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1047, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1048 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1048 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1048, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1049 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1049 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1049, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1050 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1050 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1050, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1051 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1051 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1051, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1055 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1055 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1055, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1062 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1062 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1062, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1063 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1063 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1063, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1060 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1060 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1060, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1065 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1065 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1065, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1067 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1067 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1067, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1068 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1068 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1068, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1069 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1069 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1069, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1071 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1071 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1071, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1072 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1072 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1072, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1074 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1074 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1074, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1081 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1081 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1081, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1083 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1083 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1083, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1084 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1084 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1084, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1085 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1085 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1085, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1086 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1086 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1086, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1090 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1090 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1090, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1104 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1104 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1104, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 1000 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 1000 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (1000, "DoNotConsumeLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 85 and attrName = "DoNotConsumeLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 85 and attrName = "DoNotConsumeLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (85, "DoNotConsumeLicense", 2, '1')

-- IndexingSupported property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 11 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 11 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (11, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 12 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 12 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (12, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 29 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 29 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (29, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 20 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 20 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (20, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 19 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 19 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (19, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 36 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 36 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (36, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 17 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 17 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (17, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 18 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 18 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (18, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 33 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 33 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (33, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 34 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 34 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (34, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 36 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 36 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (36, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 38 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 38 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (38, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 21 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 21 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (21, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 42 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 42 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (42, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 43 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 43 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (43, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 63 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 63 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (63, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 64 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 64 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (64, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 74 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 74 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (74, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 36 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 36 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (36, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 14 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 14 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (14, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 54 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 54 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (54, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 8 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 8 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (8, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 13 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 13 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (13, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 88 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 88 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (88, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 86 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 86 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (86, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 59 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 59 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (59, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 60 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 60 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (60, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 90 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 90 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (90, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 77 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 77 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (77, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 52 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 52 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (52, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 78 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 78 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (78, "IndexingSupported", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 89 and attrName = "IndexingSupported")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 89 and attrName = "IndexingSupported"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (89, "IndexingSupported", 2, '1')

--SharePoint
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 78 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "Documents"								
        WHERE componentNameId = 78 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (78, "DefaultBackupSetName", 1, "Documents")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 78 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 78 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (78, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 69 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 69 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (69, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 89 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 89 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (89, "DefaultInstanceName", 1, "defaultInstance")

--Exchange instance name
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 9 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 9 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (9, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 15 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 15 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (15, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 8 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 8 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (8, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 14 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 14 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (14, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 26 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 26 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (26, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 27 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 27 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (27, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 30 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 30 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (30, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 31 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 31 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (31, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 35 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 35 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (35, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 44 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 44 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (44, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 32 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 32 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (32, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 46 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 46 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (46, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 53 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 53 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (53, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 54 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 54 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (54, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 55 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 55 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (55, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 606 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 606 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (606, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 607 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 607 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (607, "DefaultInstanceName", 1, "defaultInstance")

--dummy apptype
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 85 and attrName = "DummyApptype")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 85 and attrName = "DummyApptype"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (85, "DummyApptype", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 122 and attrName = "DummyApptype")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 122 and attrName = "DummyApptype"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (122, "DummyApptype", 2, '1')

--SharePoint
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 69 and attrName = "DefaultBackupSetName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "Databases"								
        WHERE componentNameId = 69 and attrName = "DefaultBackupSetName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (69, "DefaultBackupSetName", 1, "Databases")

--Exchange instance name
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 9 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 9 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (9, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 15 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 15 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (15, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 8 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 8 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (8, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 14 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 14 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (14, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 26 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 26 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (26, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 27 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 27 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (27, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 30 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 30 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (30, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 31 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 31 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (31, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 35 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 35 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (35, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 44 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 44 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (44, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 32 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 32 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (32, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 46 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 46 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (46, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 53 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 53 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (53, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 54 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 54 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (54, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 55 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 55 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (55, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 69 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 69 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (69, "DefaultInstanceName", 1, "defaultInstance")

-- SRM Exchange & SRM SharePoint
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 606 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 606 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (606, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 607 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 607 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (607, "DefaultInstanceName", 1, "defaultInstance")

-- CreateNewIndexIfFailure property
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 65 and attrName = "CreateNewIndexIfFailure")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 65 and attrName = "CreateNewIndexIfFailure"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (65, "CreateNewIndexIfFailure", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 75 and attrName = "CreateNewIndexIfFailure")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 75 and attrName = "CreateNewIndexIfFailure"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (75, "CreateNewIndexIfFailure", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 76 and attrName = "CreateNewIndexIfFailure")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 76 and attrName = "CreateNewIndexIfFailure"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (76, "CreateNewIndexIfFailure", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 87 and attrName = "CreateNewIndexIfFailure")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 87 and attrName = "CreateNewIndexIfFailure"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (87, "CreateNewIndexIfFailure", 2, '1')

--DisableArchiveBitForBackupSet
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 25 and attrName = "DisableArchiveBitForBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 25 and attrName = "DisableArchiveBitForBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (25, "DisableArchiveBitForBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 40 and attrName = "DisableArchiveBitForBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 40 and attrName = "DisableArchiveBitForBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (40, "DisableArchiveBitForBackupSet", 2, '1')

--Exchange agents
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 45 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 45 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (45, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 56 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 56 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (56, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 67 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 67 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (67, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 68 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 68 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (68, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 82 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 82 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (82, "DefaultInstanceName", 1, "defaultInstance")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 105 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultInstance"								
        WHERE componentNameId = 105 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (105, "DefaultInstanceName", 1, "defaultInstance")

--InstanceLevelLicense
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 60 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 60 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (60, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 59 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 59 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (59, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 52 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 52 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (52, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 77 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 77 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (77, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 602 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 602 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (602, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 106 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 106 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (106, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 126 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 126 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (126, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 127 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 127 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (127, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 58 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 58 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (58, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 90 and attrName = "InstanceLevelLicense")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 90 and attrName = "InstanceLevelLicense"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (90, "InstanceLevelLicense", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 135 and attrName = "DefaultInstanceName")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 1, attrVal = "defaultDummyInstanceForSAP"								
        WHERE componentNameId = 135 and attrName = "DefaultInstanceName"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (135, "DefaultInstanceName", 1, "defaultDummyInstanceForSAP")
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 135 and attrName = "DummyInstance")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 135 and attrName = "DummyInstance"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (135, "DummyInstance", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 135 and attrName = "DummyBackupSet")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 135 and attrName = "DummyBackupSet"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (135, "DummyBackupSet", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 135 and attrName = "DummySubClient")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 135 and attrName = "DummySubClient"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (135, "DummySubClient", 2, '1')

--VM application class 1 packages
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 41 and attrName = "AppClassVirtualPackage")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 41 and attrName = "AppClassVirtualPackage"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (41, "AppClassVirtualPackage", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 53 and attrName = "AppClassVirtualPackage")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 53 and attrName = "AppClassVirtualPackage"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (53, "AppClassVirtualPackage", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 78 and attrName = "AppClassVirtualPackage")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 78 and attrName = "AppClassVirtualPackage"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (78, "AppClassVirtualPackage", 2, '1')
				
 IF EXISTS (Select * from simApptypeProp_DBU where componentNameId = 81 and attrName = "AppClassVirtualPackage")	
	UPDATE simApptypeProp_DBU											
	SET attrType = 2, attrVal = '1'								
        WHERE componentNameId = 81 and attrName = "AppClassVirtualPackage"					
 ELSE														
	INSERT INTO simApptypeProp_DBU(componentNameId, attrName, attrType, attrVal)				
 	VALUES (81, "AppClassVirtualPackage", 2, '1')



GO


--  ------------  Generated from [../../../Source/CommServer/Db/Tbl/simPackageDependency.tbl] ---------- 


-- ALLOW_COMMENTS_BELOW_HERE:
-- ----------------------------------------------------------------------
--
--           Copyright (c) 1998  CommVault Systems, Inc.
--                  All rights reserved.
--
--
--        This is unpublished proprietary source code of CommVault
--        Systems, Inc. The copyright notice above does not evidence
--        any actual or intended publication of such source code.
-- ----------------------------------------------------------------------*/
-- rcsid[]="@(#)$Source: /cvs/cvsrepro/GX/vaultcx/Source/CommServer/Db/Tbl/simPackageDependency.tbl,v $ $Id: simPackageDependency.tbl,v 1.3 2009/06/09 19:43:04 g8builder Exp $";
print '... Creating Table: simPackageDependency_DBU'
GO ---Remove it in upgrade scripts


DECLARE @tblRetCode integer
Set NOCOUNT ON


create table simPackageDependency_DBU (
	id						INTEGER NOT NULL IDENTITY (1,1),
	simDependentPackageId	integer	NOT NULL,
	simPackageId			integer	NOT NULL,
	releaseId				integer	NOT NULL,

)  

set @tblRetCode = @@error
if (@tblRetCode <> 0)
BEGIN
	set @tblRetCode = @@error;
	print 'RETVAL: 99 Table [simPackageDependency_DBU]'
END
-----------------------------------------------------


GO

