CREATE OR ALTER PROCEDURE [MIG_UPDATE_USERS_PREFERENCE_Sp]
(
	 @InputApp NVARCHAR(MAX),
	 @InputUser NVARCHAR(MAX)
)
AS BEGIN
	-- The purpose of this stored procedure is to generate/populate the data in [MIG_SW_PROPS] table.

	DECLARE @Itr_TargetPropName NVARCHAR(MAX)
	DECLARE @Itr_TargetControlType NVARCHAR(MAX)
	DECLARE @Itr_PropDescription NVARCHAR(MAX)
	DECLARE @Itr_LegacyPropName NVARCHAR(MAX)
	DECLARE @Itr_LegacyPropGuiType NVARCHAR(MAX)
	DECLARE @Itr_PropValue NVARCHAR(MAX)

	
	DECLARE @TargetUser NVARCHAR(MAX)

	DECLARE @Data NVARCHAR(MAX)

	--MIG_AUTOCAD_PREFERENCES
	DECLARE @a001 INT 
	DECLARE @a002 INT 
	DECLARE @a003 INT 
	DECLARE @a004 INT 
	DECLARE @a005 INT 
	DECLARE @a006 INT 
	DECLARE @a007 INT 
	DECLARE @a008 INT 
	DECLARE @a009 INT 
	DECLARE @a010 INT 
	DECLARE @a011 INT 
	DECLARE @a012 INT 
	DECLARE @a013 INT 
	DECLARE @a014 INT 
	DECLARE @a015 INT 
	DECLARE @a016 INT 
	DECLARE @a017 INT 
	DECLARE @a018 INT 
	DECLARE @a019 INT 
	DECLARE @a020 INT 
	DECLARE @a021 INT 
	DECLARE @a022 INT 
	DECLARE @a023 INT 
	DECLARE @a024 INT 
	DECLARE @a025 INT 
	DECLARE @a026 INT 
	DECLARE @a027 VARCHAR(255) 
	DECLARE @a028 VARCHAR(255) 
	DECLARE @a029 INT 
	DECLARE @a030 INT 
	DECLARE @a031 INT 
	DECLARE @a032 INT 
	DECLARE @a033 INT 
	DECLARE @a034 INT 
	DECLARE @a035 INT 
	DECLARE @a036 INT 
	DECLARE @a037 INT 
	DECLARE @a038 INT 
	DECLARE @a039 INT 
	DECLARE @a040 INT 
	DECLARE @a041 INT 
	DECLARE @a042 INT 
	DECLARE @a043 INT 
	DECLARE @a044 INT 
	DECLARE @a045 VARCHAR(255) 
	DECLARE @a046 INT 

	--MIG_CATIAV_PREFERENCES
	DECLARE @c001 VARCHAR(255) 
	DECLARE @c002 VARCHAR(255) 
	DECLARE @c003 INT 
	DECLARE @c004 INT 
	DECLARE @c005 INT 
	DECLARE @c006 INT 
	DECLARE @c007 INT 
	DECLARE @c008 INT 
	DECLARE @c009 INT 
	DECLARE @c010 INT 
	DECLARE @c011 INT 
	DECLARE @c012 INT 
	DECLARE @c013 INT 

	--MIG_DRAFTSIGHT_PREFERENCES
	DECLARE @d001 INT 
	DECLARE @d002 INT 
	DECLARE @d003 INT 
	DECLARE @d004 INT 
	DECLARE @d005 INT 
	DECLARE @d006 INT 
	DECLARE @d007 INT 
	DECLARE @d008 INT 
	DECLARE @d009 INT 
	DECLARE @d010 INT 
	DECLARE @d011 INT 
	DECLARE @d012 INT 
	DECLARE @d013 INT 
	DECLARE @d014 INT 
	DECLARE @d015 INT 
	DECLARE @d016 INT 
	DECLARE @d017 INT 
	DECLARE @d018 INT 
	DECLARE @d019 INT 
	DECLARE @d021 INT 
	DECLARE @d020 INT 
	DECLARE @d022 INT 
	DECLARE @d023 VARCHAR(255) 
	DECLARE @d024 VARCHAR(255) 
	DECLARE @d025 INT 
	DECLARE @d026 INT 
	DECLARE @d027 INT 
	DECLARE @d028 INT 
	DECLARE @d029 INT 
	DECLARE @d030 INT 
	DECLARE @d031 INT 
	DECLARE @d032 INT 
	DECLARE @d033 INT 
	DECLARE @d034 INT 
	DECLARE @d035 INT 
	DECLARE @d036 INT 
	DECLARE @d037 INT 
	DECLARE @d038 INT 
	DECLARE @d039 INT 
	DECLARE @d040 INT 
	DECLARE @d041 VARCHAR(20) 
	DECLARE @d042 INT 

	--MIG_SOLIDEDGE_PREFERENCES
	DECLARE @e001 VARCHAR(255) 
	DECLARE @e002 VARCHAR(255) 
	DECLARE @e003 INT 
	DECLARE @e004 INT 
	DECLARE @e005 INT 
	DECLARE @e006 INT 
	DECLARE @e007 INT 
	DECLARE @e008 INT 
	DECLARE @e009 INT 
	DECLARE @e010 INT 
	DECLARE @e011 INT 
	DECLARE @e012 INT 
	DECLARE @e013 INT 
	DECLARE @e014 INT 
	DECLARE @e015 INT 
	DECLARE @e016 INT 
	DECLARE @e017 INT 
	DECLARE @e018 VARCHAR(20) 
	DECLARE @e019 INT 
	DECLARE @e020 INT 
	DECLARE @e021 INT 
	DECLARE @e022 INT 
	DECLARE @e023 INT 

	--MIG_INVENTOR_PREFERENCES
	DECLARE @i001 INT 
	DECLARE @i002 INT 
	DECLARE @i003 INT 
	DECLARE @i004 INT 
	DECLARE @i005 INT 
	DECLARE @i006 INT 
	DECLARE @i007 INT 
	DECLARE @i008 INT 
	DECLARE @i009 INT 
	DECLARE @i010 INT 
	DECLARE @i011 INT 
	DECLARE @i012 VARCHAR(20) 
	DECLARE @i013 INT 
	DECLARE @i014 INT 
	DECLARE @i015 INT 
	DECLARE @i016 INT 
	DECLARE @i017 INT 
	DECLARE @i018 INT 
	DECLARE @i019 VARCHAR(20) 
	DECLARE @i020 VARCHAR(20) 
	DECLARE @i021 VARCHAR(20) 
	DECLARE @i022 INT 
	DECLARE @i023 VARCHAR(20) 
	DECLARE @i024 VARCHAR(20) 
	DECLARE @i025 VARCHAR(20) 
	DECLARE @i026 VARCHAR(50) 
	DECLARE @i027 VARCHAR(50) 
	DECLARE @i028 INT 
	DECLARE @i029 INT 
	DECLARE @i030 INT 
	DECLARE @i031 VARCHAR(20) 
	DECLARE @i032 VARCHAR(20) 
	DECLARE @i033 VARCHAR(20) 
	DECLARE @i034 VARCHAR(20) 
	DECLARE @i035 INT 
	DECLARE @i036 INT 
	DECLARE @i037 INT 
	DECLARE @i038 INT 
	DECLARE @i039 INT 
	DECLARE @i040 INT 
	DECLARE @i041 INT 
	DECLARE @i042 VARCHAR(50) 
	DECLARE @i043 VARCHAR(50) 
	DECLARE @i044 VARCHAR(50) 
	DECLARE @i045 INT 
	DECLARE @i046 INT 
	DECLARE @i047 INT 
	DECLARE @i048 INT 
	DECLARE @i049 INT 
	DECLARE @i050 INT 
	DECLARE @i051 INT 
	DECLARE @i052 INT 
	DECLARE @i053 INT 
	DECLARE @i054 INT 
	DECLARE @i055 INT 
	DECLARE @i056 INT 
	DECLARE @i057 INT 
	DECLARE @i058 INT 
	DECLARE @i059 INT 
	DECLARE @i060 INT 
	DECLARE @i061 INT 
	DECLARE @i062 INT 
	DECLARE @i063 INT 
	DECLARE @i064 INT 
	DECLARE @i065 INT 
	DECLARE @i066 INT 
	DECLARE @i067 INT 
	DECLARE @i068 INT 
	DECLARE @i069 INT 
	DECLARE @i070 INT 
	DECLARE @i071 INT 
	DECLARE @i072 INT 
	DECLARE @i073 INT 
	DECLARE @i074 INT 
	DECLARE @i075 INT 
	DECLARE @i076 INT 
	DECLARE @i077 INT 
	DECLARE @i078 INT 
	DECLARE @i079 INT 
	DECLARE @i080 INT 
	DECLARE @i081 INT 
	DECLARE @i082 INT 
	DECLARE @i083 INT 
	DECLARE @i084 INT 
	DECLARE @i085 INT 
	DECLARE @i086 INT 
	DECLARE @i087 INT 
	DECLARE @i088 INT 
	DECLARE @i089 INT 
	DECLARE @i090 INT 
	DECLARE @i091 INT 
	DECLARE @i092 VARCHAR(20) 
	DECLARE @i093 VARCHAR(20) 
	DECLARE @i094 VARCHAR(20) 
	DECLARE @i095 INT 
	DECLARE @i096 INT 
	DECLARE @i097 VARCHAR(255) 
	DECLARE @i098 INT 
	DECLARE @i099 VARCHAR(255) 
	DECLARE @i100 INT 
	DECLARE @i101 INT 
	DECLARE @i102 INT 
	DECLARE @i103 INT 
	DECLARE @i104 INT 
	DECLARE @i105 INT 
	DECLARE @i106 INT 
	DECLARE @i107 INT 
	DECLARE @i108 INT 
	DECLARE @i109 INT 
	DECLARE @i110 INT 
	DECLARE @i111 INT 
	DECLARE @i112 INT 
	DECLARE @i113 INT 
	DECLARE @i114 INT 
	DECLARE @i115 INT 
	DECLARE @i116 INT 
	DECLARE @i117 INT 
	DECLARE @i118 INT 
	DECLARE @i119 INT 
	DECLARE @i120 INT 
	DECLARE @i121 INT 
	DECLARE @i122 INT 
	DECLARE @i123 INT 
	DECLARE @i124 INT 
	DECLARE @i125 INT 
	DECLARE @i126 INT 
	DECLARE @i127 INT 
	DECLARE @i128 INT 
	DECLARE @i129 VARCHAR(255) 
	DECLARE @i130 INT 
	DECLARE @i131 INT 
	DECLARE @i132 INT 
	DECLARE @i133 INT 
	DECLARE @i134 INT 
	DECLARE @i135 INT 
	DECLARE @i136 VARCHAR(20) 
	DECLARE @i137 INT 
	DECLARE @i138 INT 
	DECLARE @i139 VARCHAR(50) 

	--MIG_ME_PREFERENCES
	DECLARE @m001 VARCHAR(255) 
	DECLARE @m002 VARCHAR(255) 
	DECLARE @m003 INT 
	DECLARE @m004 INT 
	DECLARE @m005 INT 
	DECLARE @m006 INT 
	DECLARE @m007 INT 
	DECLARE @m008 VARCHAR(20) 

	--MIG_MSOFFICE_PREFERENCES
	DECLARE @o001 VARCHAR(255) 
	DECLARE @o002 VARCHAR(255) 
	DECLARE @o003 INT 
	DECLARE @o004 INT 
	DECLARE @o005 INT 
	DECLARE @o006 INT 
	DECLARE @o007 INT 
	DECLARE @o008 INT 
	DECLARE @o009 INT 
	DECLARE @o010 INT 
	DECLARE @o011 INT 
	DECLARE @o012 INT 
	DECLARE @o013 INT 
	DECLARE @o014 INT 
	DECLARE @o015 INT 
	DECLARE @o016 INT 
	DECLARE @o017 VARCHAR(20) 
	DECLARE @o018 VARCHAR(20) 
	DECLARE @o019 VARCHAR(20) 
	DECLARE @o020 VARCHAR(20) 
	DECLARE @o021 INT 
	DECLARE @o022 INT 
	DECLARE @o023 VARCHAR(20) 
	DECLARE @o024 INT 
	DECLARE @o026 INT 
	DECLARE @o027 INT 
	DECLARE @o028 INT 
	DECLARE @o029 INT 
	DECLARE @o030 INT 
	DECLARE @o031 INT 
	DECLARE @o032 INT 
	DECLARE @o033 INT 
	DECLARE @o034 INT 
	DECLARE @o035 INT 

	--MIG_CREO_PREFERENCES
	DECLARE @p001 INT 
	DECLARE @p002 INT 
	DECLARE @p003 INT 
	DECLARE @p004 INT 
	DECLARE @p005 INT 
	DECLARE @p006 INT 
	DECLARE @p007 INT 
	DECLARE @p008 INT 
	DECLARE @p009 INT 
	DECLARE @p010 INT 
	DECLARE @p011 INT 
	DECLARE @p012 VARCHAR(20) 
	DECLARE @p013 VARCHAR(20) 
	DECLARE @p014 INT 
	DECLARE @p015 INT 
	DECLARE @p016 INT 
	DECLARE @p017 INT 
	DECLARE @p018 INT 
	DECLARE @p019 INT 
	DECLARE @p020 INT 
	DECLARE @p021 INT 
	DECLARE @p022 INT 
	DECLARE @p023 INT 
	DECLARE @p024 VARCHAR(20) 
	DECLARE @p025 VARCHAR(20) 
	DECLARE @p026 VARCHAR(20) 
	DECLARE @p027 INT 
	DECLARE @p028 INT 
	DECLARE @p029 INT 
	DECLARE @p030 INT 
	DECLARE @p031 INT 
	DECLARE @p032 INT 
	DECLARE @p033 INT 
	DECLARE @p034 INT 
	DECLARE @p035 INT 
	DECLARE @p036 INT 
	DECLARE @p037 INT 
	DECLARE @p038 INT 
	DECLARE @p039 INT 
	DECLARE @p040 INT 
	DECLARE @p041 INT 
	DECLARE @p042 INT 
	DECLARE @p043 INT 
	DECLARE @p044 INT 
	DECLARE @p045 INT 
	DECLARE @p046 INT 
	DECLARE @p047 INT 
	DECLARE @p048 INT 
	DECLARE @p049 INT 
	DECLARE @p050 INT 
	DECLARE @p051 INT 
	DECLARE @p052 INT 
	DECLARE @p053 INT 
	DECLARE @p054 INT 
	DECLARE @p055 INT 
	DECLARE @p056 INT 
	DECLARE @p057 INT 
	DECLARE @p058 INT 
	DECLARE @p059 INT 
	DECLARE @p060 INT 
	DECLARE @p061 INT 
	DECLARE @p062 VARCHAR(255) 
	DECLARE @p063 VARCHAR(255) 
	DECLARE @p064 INT 
	DECLARE @p065 INT 
	DECLARE @p066 INT 
	DECLARE @p067 INT 
	DECLARE @p068 INT 
	DECLARE @p069 VARCHAR(20) 
	DECLARE @p070 INT 
	DECLARE @p071 INT 
	DECLARE @p072 INT 
	DECLARE @p073 INT 
	DECLARE @p074 INT 
	DECLARE @p075 INT 
	DECLARE @p076 INT 
	DECLARE @p077 INT 
	DECLARE @p078 INT 
	DECLARE @p079 INT 
	DECLARE @p080 INT 
	DECLARE @p081 INT 
	DECLARE @p082 INT 
	DECLARE @p083 INT 
	DECLARE @p084 INT 
	DECLARE @p085 INT 
	DECLARE @p086 INT 
	DECLARE @p087 INT 
	DECLARE @p088 INT 
	DECLARE @p089 INT 
	DECLARE @p090 INT 
	DECLARE @p091 INT 
	DECLARE @p092 INT 
	DECLARE @p093 INT 
	DECLARE @p094 INT 
	DECLARE @p095 INT 
	DECLARE @p096 INT 
	DECLARE @p097 INT 
	DECLARE @p098 INT 
	DECLARE @p099 INT 
	DECLARE @p100 INT 
	DECLARE @p101 INT 
	DECLARE @p102 INT 
	DECLARE @p103 INT 
	DECLARE @p104 INT 
	DECLARE @p105 INT 
	DECLARE @p106 INT 
	DECLARE @p107 INT 
	DECLARE @p108 INT 
	DECLARE @p109 VARCHAR(255) 
	DECLARE @p110 VARCHAR(255) 
	DECLARE @p111 INT 
	DECLARE @p112 INT 
	DECLARE @p113 INT 
	DECLARE @p114 INT 
	DECLARE @p115 INT 
	DECLARE @p116 INT 
	DECLARE @p117 VARCHAR(20) 
	DECLARE @p118 INT 

	--MIG_SOLIDWORKS_PREFERENCES
	DECLARE @s001 int 
	DECLARE @s002 int 
	DECLARE @s003 int 
	DECLARE @s004 int 
	DECLARE @s005 int 
	DECLARE @s006 int 
	DECLARE @s007 int 
	DECLARE @s008 int 
	DECLARE @s009 int 
	DECLARE @s010 int 
	DECLARE @s011 int 
	DECLARE @s012 int 
	DECLARE @s013 varchar(20) 
	DECLARE @s014 int 
	DECLARE @s015 int 
	DECLARE @s016 int 
	DECLARE @s017 int 
	DECLARE @s018 int 
	DECLARE @s019 int 
	DECLARE @s020 int 
	DECLARE @s021 int 
	DECLARE @s022 int 
	DECLARE @s023 nvarchar(240) 
	DECLARE @s024 nvarchar(240) 
	DECLARE @s025 nvarchar(240) 
	DECLARE @s026 int 
	DECLARE @s027 int 
	DECLARE @s028 int 
	DECLARE @s029 int 
	DECLARE @s030 int 
	DECLARE @s031 int 
	DECLARE @s032 int 
	DECLARE @s033 int 
	DECLARE @s034 int 
	DECLARE @s035 int 
	DECLARE @s036 int 
	DECLARE @s037 int 
	DECLARE @s038 int 
	DECLARE @s039 int 
	DECLARE @s040 int 
	DECLARE @s041 int 
	DECLARE @s042 int 
	DECLARE @s043 int 
	DECLARE @s044 int 
	DECLARE @s045 int 
	DECLARE @s046 int 
	DECLARE @s047 int 
	DECLARE @s048 int 
	DECLARE @s049 int 
	DECLARE @s050 int 
	DECLARE @s051 int 
	DECLARE @s052 int 
	DECLARE @s053 int 
	DECLARE @s054 int 
	DECLARE @s055 int 
	DECLARE @s056 int 
	DECLARE @s057 int 
	DECLARE @s058 int 
	DECLARE @s059 int 
	DECLARE @s060 int 
	DECLARE @s061 int 
	DECLARE @s062 int 
	DECLARE @s063 int 
	DECLARE @s064 int 
	DECLARE @s065 int 
	DECLARE @s066 varchar(255) 
	DECLARE @s067 varchar(255) 
	DECLARE @s068 int 
	DECLARE @s069 int 
	DECLARE @s070 int 
	DECLARE @s071 int 
	DECLARE @s072 int 
	DECLARE @s073 int 
	DECLARE @s074 int 
	DECLARE @s075 int 
	DECLARE @s076 int 
	DECLARE @s077 int 
	DECLARE @s078 int 
	DECLARE @s079 int 
	DECLARE @s080 int 
	DECLARE @s081 int 
	DECLARE @s082 int 
	DECLARE @s083 int 
	DECLARE @s084 int 
	DECLARE @s085 int 
	DECLARE @s086 int 
	DECLARE @s087 int 
	DECLARE @s088 int 
	DECLARE @s089 int 
	DECLARE @s090 int 
	DECLARE @s091 int 
	DECLARE @s092 int 
	DECLARE @s093 int 
	DECLARE @s094 int 
	DECLARE @s095 int 
	DECLARE @s096 int 
	DECLARE @s097 int 
	DECLARE @s098 int 
	DECLARE @s099 int 
	DECLARE @s100 varchar(20) 
	DECLARE @s101 int 
	DECLARE @s102 int 
	DECLARE @s103 varchar(255) 
	DECLARE @s104 varchar(255) 
	DECLARE @s105 int 
	DECLARE @s106 int 
	DECLARE @s107 int 
	DECLARE @s108 int 
	DECLARE @s109 int 
	DECLARE @s110 int 
	DECLARE @s111 int 
	DECLARE @s112 varchar(255) 
	DECLARE @s113 int 
	DECLARE @s114 int 
	DECLARE @s115 varchar(20) 
	DECLARE @s116 varchar(20) 
	DECLARE @s117 int 
	DECLARE @s118 int 
	DECLARE @s119 int 
	DECLARE @s120 int 
	DECLARE @s121 int 
	DECLARE @s122 int 
	DECLARE @s123 int 
	DECLARE @s124 int 

	--MIG_TOOLKIT_PREFERENCES
	DECLARE @t001 int 
	DECLARE @t002 int 
	DECLARE @t003 int 
	DECLARE @t004 int 
	DECLARE @t005 int 
	DECLARE @t006 int 
	DECLARE @t007 int 
	DECLARE @t008 int 
	DECLARE @t009 int 
	DECLARE @t010 int 
	--DECLARE @--t011 int 
	DECLARE @t012 int 
	DECLARE @t013 int 
	DECLARE @t014 int 
	DECLARE @t015 int 
	DECLARE @t016 int 
	DECLARE @t017 int 
	DECLARE @t018 varchar(20) 
	DECLARE @t019 varchar(20) 
	DECLARE @t020 varchar(20) 
	DECLARE @t021 varchar(20) 
	DECLARE @t022 varchar(20) 
	DECLARE @t023 varchar(20) 
	DECLARE @t024 varchar(20) 
	DECLARE @t025 varchar(20) 
	DECLARE @t026 varchar(20) 
	DECLARE @t027 varchar(20) 
	DECLARE @t028 varchar(20) 
	DECLARE @t029 varchar(20) 
	DECLARE @t030 varchar(20) 
	DECLARE @t031 varchar(20) 
	DECLARE @t032 varchar(20) 
	DECLARE @t033 varchar(20) 
	DECLARE @t034 varchar(20) 
	DECLARE @t035 varchar(20) 
	DECLARE @t036 varchar(20) 
	DECLARE @t037 varchar(20) 
	DECLARE @t038 varchar(20) 
	DECLARE @t039 varchar(20) 
	DECLARE @t040 varchar(20) 
	DECLARE @t041 varchar(20) 
	DECLARE @t042 varchar(20) 
	DECLARE @t043 varchar(20) 
	DECLARE @t044 varchar(20) 
	DECLARE @t045 varchar(20) 
	DECLARE @t046 varchar(20) 
	DECLARE @t047 varchar(20) 
	DECLARE @t048 varchar(20) 
	DECLARE @t049 varchar(20) 
	DECLARE @t050 varchar(20) 
	DECLARE @t051 varchar(20) 
	DECLARE @t052 int 
	DECLARE @t053 int 
	DECLARE @t054 int 
	DECLARE @t055 int 
	DECLARE @t056 int 
	DECLARE @t057 int 

	--MIG_UG_PREFERENCES
	DECLARE @u001 VARCHAR(255) 
	DECLARE @u002 VARCHAR(255) 
	DECLARE @u003 INT 
	DECLARE @u004 INT 
	DECLARE @u005 INT 
	DECLARE @u006 INT 
	DECLARE @u007 INT 
	DECLARE @u008 INT 
	DECLARE @u009 INT 
	DECLARE @u010 INT 
	DECLARE @u011 INT 
	DECLARE @u012 INT 
	DECLARE @u013 INT 

	--MIG_PLM_PREFERENCES
	DECLARE @w001 INT 
	DECLARE @w002 INT 
	DECLARE @w003 VARCHAR(15) 
	DECLARE @w004 VARCHAR(255) 
	DECLARE @w005 INT 
	DECLARE @w006 INT 
	DECLARE @w007 VARCHAR(255) 
	DECLARE @w008 INT 
	DECLARE @w009 INT 
	DECLARE @w010 INT 
	DECLARE @w011 INT 
	DECLARE @w012 INT 
	DECLARE @w013 INT 
	DECLARE @w014 INT 
	DECLARE @w015 INT 
	DECLARE @w016 INT 
	DECLARE @w017 INT 
	DECLARE @w018 INT 
	DECLARE @w019 INT 
	DECLARE @w020 INT 
	DECLARE @w021 INT 
	DECLARE @w022 INT 
	DECLARE @w023 INT 
	DECLARE @w024 INT 
	DECLARE @w025 VARCHAR(5) 
	DECLARE @w026 INT 
	DECLARE @w027 INT 
	DECLARE @w028 VARCHAR(255) 
	DECLARE @w029 INT 
	DECLARE @w030 VARCHAR(32) 
	DECLARE @w031 INT 
	DECLARE @w032 VARCHAR(255) 
	DECLARE @w033 INT 
	DECLARE @w034 INT 
	DECLARE @w035 INT 
	DECLARE @w036 INT 
	DECLARE @w037 INT 
	DECLARE @w038 INT 
	DECLARE @w039 INT 
	DECLARE @w040 INT 
	DECLARE @w041 INT 
	DECLARE @w042 VARCHAR(15) 
	DECLARE @w043 INT 
	DECLARE @w044 INT 
	DECLARE @w045 INT 
	DECLARE @w046 INT 
	DECLARE @w047 INT 
	DECLARE @w048 INT 
	DECLARE @w049 INT 
	DECLARE @w050 INT 
	DECLARE @w051 INT 
	DECLARE @w052 INT 
	DECLARE @w053 INT 
	DECLARE @w054 INT 
	DECLARE @w055 INT 
	DECLARE @w056 INT 
	DECLARE @w057 INT 
	DECLARE @w058 INT 
	DECLARE @w059 INT 
	DECLARE @w060 INT 
	DECLARE @w061 INT 
	DECLARE @w063 INT 
	DECLARE @w064 VARCHAR(255) 
	DECLARE @w065 VARCHAR(255) 
	DECLARE @w066 INT 
	DECLARE @w067 INT 
	DECLARE @w068 INT 
	DECLARE @w069 INT 
	DECLARE @w070 INT 
	DECLARE @w071 INT 
	DECLARE @w072 INT 
	DECLARE @w073 VARCHAR(15) 
	DECLARE @w074 INT 
	DECLARE @w075 INT 
	DECLARE @w076 INT 
	DECLARE @w077 INT 
	DECLARE @w078 INT 
	DECLARE @w079 INT 
	DECLARE @w080 INT 
	DECLARE @w081 INT 
	DECLARE @w082 INT 
	DECLARE @w083 INT 
	DECLARE @w084 VARCHAR(255) 
	DECLARE @w085 INT 
	DECLARE @w086 INT 
	DECLARE @w087 INT 
	DECLARE @w088 VARCHAR(255) 
	DECLARE @w089 VARCHAR(255) 
	DECLARE @w090 INT 
	DECLARE @w091 INT 
	DECLARE @w092 INT 
	DECLARE @w093 INT 
	DECLARE @w094 INT 
	DECLARE @w095 INT 
	DECLARE @w096 INT 
	DECLARE @w097 INT 
	DECLARE @w098 INT 
	DECLARE @w099 INT 
	DECLARE @w100 VARCHAR(6) 
	DECLARE @w101 VARCHAR(6) 
	DECLARE @w102 VARCHAR(6) 
	DECLARE @w103 VARCHAR(6) 
	DECLARE @w104 VARCHAR(6) 
	DECLARE @w105 VARCHAR(6) 
	DECLARE @w106 INT 
	DECLARE @w107 INT 
	DECLARE @w108 INT 
	DECLARE @w109 INT 
	DECLARE @w110 INT 
	DECLARE @w111 INT 
	DECLARE @w112 INT 
	DECLARE @w113 INT 
	DECLARE @w114 INT 
	DECLARE @w115 INT 
	DECLARE @w116 INT 
	DECLARE @w117 INT 
	DECLARE @w118 INT 
	DECLARE @w119 INT 
	DECLARE @w120 INT 
	DECLARE @w121 INT 
	DECLARE @w122 VARCHAR(50) 
	DECLARE @w123 VARCHAR(9) 

	SELECT @TargetUser = MIG_USERS.LN_USER
	FROM MIG_USERS
	WHERE MIG_USERS.USER_NAME = @InputUser
	
	--Define cursor
	DECLARE RecordsCursor CURSOR  
	LOCAL FORWARD_ONLY FOR  
	SELECT 
		--SYS_PROPS.APP_NAME, 
		MIG_PROP_NAMES_MAPPING.PropName AS "TargetPropName",
		MIG_PROP_NAMES_MAPPING.ControlType AS "TargetControlType",
		MIG_PROP_NAMES_MAPPING.PropDescription AS "TargetPropDescription",
		-- PLM PREF in pd also have prefs of SYS CONFIG which are not available in SYS_PROPS
		-- So if Sys_PROP legacy is null go for MIG_PROP_NAME Legacy Prop Name
		IsNull(SYS_PROPS.PROP_NAME, MIG_PROP_NAMES_MAPPING.LegacyPropName) AS "LegacyPropName",   
		SYS_PROPS.PROP_GUI_TYPE AS "LegacyPropGuiType",
		CASE 
			WHEN SYS_PROPS.ALLOWED_USER = 'USER' AND USER_PROPS.PROP_VALUE IS NOT NULL THEN
				USER_PROPS.PROP_VALUE
			ELSE
				SYS_PROPS.PROP_VALUE
		END as 'PROP_VALUE'
	FROM MIG_PROP_NAMES_MAPPING
	LEFT JOIN SYS_PROPS
	  ON MIG_PROP_NAMES_MAPPING.AppName = SYS_PROPS.APP_NAME
	 AND MIG_PROP_NAMES_MAPPING.LegacyPropName = SYS_PROPS.PROP_NAME
	LEFT JOIN USER_PROPS
	  ON USER_PROPS.APP_NAME = SYS_PROPS.APP_NAME
	 AND USER_PROPS.PROP_NAME = SYS_PROPS.PROP_NAME
	 AND USER_PROPS.USER_ID = @InputUser
	WHERE MIG_PROP_NAMES_MAPPING.AppName = @InputApp 
	--AND LegacyPropName = 'CHECK_IN_CLEANUP'

	--Open cursor & iterate
	OPEN RecordsCursor  
	WHILE 1 = 1   
	BEGIN
		FETCH NEXT FROM RecordsCursor INTO  @Itr_TargetPropName, 
											@Itr_TargetControlType, 
											@Itr_PropDescription, 
											@Itr_LegacyPropName, 
											@Itr_LegacyPropGuiType,
											@Itr_PropValue
		IF @@FETCH_STATUS <> 0
			BREAK

		--Update specific preference.
		--exec MIG_SET_USER_PREFERENCE_Sp		@InputUser, 
		--									@InputApp, 
		--									@Itr_TargetPropName, 
		--									@Itr_TargetControlType, 
		--									@Itr_PropDescription, 
		--									@Itr_LegacyPropName, 
		--									@Itr_LegacyPropGuiType,
		--									@Itr_PropValue

		/*
		SELECT 
			MIG_PROP_NAMES_MAPPING.PropName + ' = @' + MIG_PROP_NAMES_MAPPING.PropName,
			--'IF @InputApp = ''' + MIG_PROP_NAMES_MAPPING.AppName + ''' AND @Itr_TargetPropName = ''' +  MIG_PROP_NAMES_MAPPING.PropName + '''' +
			CASE 
				WHEN PROP_GUI_TYPE IS NULL THEN
					'SET @' + MIG_PROP_NAMES_MAPPING.PropName + ' = '+ '''' + MIG_TARGET_TABLE_FIELD.DEFAULT_VALUE + ''' '
				WHEN MIG_TARGET_DOMAINS.DATA_TYPE = 'S' OR MIG_TARGET_DOMAINS.DATA_TYPE = 'M' THEN
					'IF @Itr_TargetPropName = ''' +  MIG_PROP_NAMES_MAPPING.PropName + ''' ' +
					'SET @' + MIG_PROP_NAMES_MAPPING.PropName + ' = dbo.MIG_GET_PREFERENCE_VALUE_Fn(' + 
					'''' + MIG_PROP_NAMES_MAPPING.AppName + ''', ' +
					'''' + MIG_PROP_NAMES_MAPPING.PropName + ''', ' +
					'''' + MIG_PROP_NAMES_MAPPING.LegacyPropName + ''', ' +
					'''' + CAST(SYS_PROPS.PROP_GUI_TYPE AS VARCHAR) + ''', ' +
					'''' + MIG_TARGET_DOMAINS.DATA_TYPE + ''', ' +
					'''' + MIG_TARGET_TABLE_FIELD.DOMAIN + ''', ' +
					'''' + MIG_TARGET_TABLE_FIELD.DEFAULT_VALUE + ''', ' +
					'@Itr_PropValue) ' 
				ELSE
					'IF @Itr_TargetPropName = ''' +  MIG_PROP_NAMES_MAPPING.PropName + ''' ' +
					'SET @' + MIG_PROP_NAMES_MAPPING.PropName + ' = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn(' + 
					'''' + MIG_PROP_NAMES_MAPPING.AppName + ''', ' +
					'''' + MIG_PROP_NAMES_MAPPING.PropName + ''', ' +
					'''' + MIG_PROP_NAMES_MAPPING.LegacyPropName + ''', ' +
					'''' + CAST(SYS_PROPS.PROP_GUI_TYPE AS VARCHAR) + ''', ' +
					'''' + MIG_TARGET_DOMAINS.DATA_TYPE + ''', ' +
					'''' + MIG_TARGET_TABLE_FIELD.DOMAIN + ''', ' +
					'''' + MIG_TARGET_TABLE_FIELD.DEFAULT_VALUE + ''', ' +
					'@Itr_PropValue) AS INT)' 
			END	+ '-- ' + MIG_TARGET_TABLE_FIELD.DESCRIPTION + ' (Domain = ' + MIG_TARGET_TABLE_FIELD.DOMAIN + ', Type = ' + MIG_TARGET_DOMAINS.DATA_TYPE +')'
			AS "EXPRESSION",
			MIG_PROP_NAMES_MAPPING.AppName,  
			MIG_PROP_NAMES_MAPPING.PropName,
			MIG_TARGET_TABLE_FIELD.DESCRIPTION,
			MIG_PROP_NAMES_MAPPING.LegacyPropName,
			SYS_PROPS.PROP_GUI_TYPE,
			CASE 
				WHEN SYS_PROPS.PROP_GUI_TYPE = '0' THEN 'Boolean'
				WHEN SYS_PROPS.PROP_GUI_TYPE = '1' THEN 'List'
				WHEN SYS_PROPS.PROP_GUI_TYPE = '2' THEN 'String'
				WHEN SYS_PROPS.PROP_GUI_TYPE = '3' THEN 'String'
				WHEN SYS_PROPS.PROP_GUI_TYPE = '4' THEN 'String'
				WHEN SYS_PROPS.PROP_GUI_TYPE = '6' THEN 'String'
				ELSE
					'Unknown'
			END AS "SOURCE_FIELD_TYPE",
			MIG_TARGET_DOMAINS.DATA_TYPE AS "TARGET_FIELD_TYPE",
			MIG_TARGET_TABLE_FIELD.DOMAIN,
			MIG_TARGET_TABLE_FIELD.DEFAULT_VALUE,
			CASE WHEN MIG_TARGET_DOMAINS.DATA_TYPE = 'E' THEN '1' ELSE '0' END AS "IsEnum"
		FROM MIG_PROP_NAMES_MAPPING
		JOIN MIG_TARGET_TABLE_FIELD
		  ON MIG_TARGET_TABLE_FIELD.TABLE_NAME = 
				CASE 
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'WEBPLM' THEN 'pdadm002'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'TOOLKIT' THEN 'pdcad001'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'AUTOCAD' THEN 'pdcad002'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'CATIAV5' THEN 'pdcad003'
					--pdcad004 (DraftSight preferences)
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'INVENTOR' THEN 'pdcad005'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'ME10' THEN 'pdcad006'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'MSOFFICE' THEN 'pdcad007'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'PROE' THEN 'pdcad008'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'SOLIDEDGE' THEN 'pdcad009'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'SOLIDWORKS' THEN 'pdcad010'
					WHEN MIG_PROP_NAMES_MAPPING.AppName = 'UG' THEN 'pdcad011'
					ELSE ''
				END		
		 AND SUBSTRING(MIG_TARGET_TABLE_FIELD.NAME, CHARINDEX('.', MIG_TARGET_TABLE_FIELD.NAME) + 1, 10) = MIG_PROP_NAMES_MAPPING.PropName
		LEFT JOIN SYS_PROPS
		  ON SYS_PROPS.APP_NAME = MIG_PROP_NAMES_MAPPING.AppName
		 AND SYS_PROPS.PROP_NAME = MIG_PROP_NAMES_MAPPING.LegacyPropName
		LEFT JOIN MIG_TARGET_DOMAINS
		  ON MIG_TARGET_DOMAINS.NAME = MIG_TARGET_TABLE_FIELD.DOMAIN
		ORDER BY MIG_PROP_NAMES_MAPPING.AppName, MIG_PROP_NAMES_MAPPING.PropName 
		--ORDER BY SOURCE_FIELD_TYPE, TARGET_FIELD_TYPE
		*/
		
		IF @InputApp = 'AUTOCAD'
		BEGIN
			IF @Itr_TargetPropName = 'a001' SET @a001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a001', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a002' SET @a002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a002', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '20', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'a003' SET @a003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a003', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'a004' SET @a004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a004', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '10', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'a005' SET @a005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a005', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a006' SET @a006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a006', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a007' SET @a007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a007', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP', '1', 'E', 'pdcad.lobp', '30', @Itr_PropValue) AS INT)-- Action for objects locked by Business Process (Domain = pdcad.lobp, Type = E)
			ELSE IF @Itr_TargetPropName = 'a008' SET @a008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a008', 'SUPPORT_MDT_TITLE_BLOCKS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Support Mechanical Desktop Title-Blocks (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a009' SET @a009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a009', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a010' SET @a010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a010', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'a011' SET @a011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a011', 'DISABLE_ACTIONS_ON_VIEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable actions on view files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a012' SET @a012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a012', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '10', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'a013' SET @a013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a013', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Allow reload of already opened files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a014' SET @a014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a014', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a015' SET @a015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a015', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn user when the same item is linked to parent and child components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a016' SET @a016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a016', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a017' SET @a017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a017', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Meta Data comparison during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a018' SET @a018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a018', 'SKIP_MAPPING_FOR_RELEASED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Mapping for Released files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a019' SET @a019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a019', 'PERFORM_MAPPING_DURING_DOWNLOAD_BASED_ON_FILE_MAPPING_RULES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Perform mapping during download based on File Mapping rules value (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a020' SET @a020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a020', 'SKIP_ITEM_MANAGER_UPDATION_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Item Manager update during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a021' SET @a021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a021', 'DISABLE_MODIFY_EVENT_PROMPT_TO_CHECK_OUT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable modify event prompt to check-out (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a022' SET @a022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a022', 'PLM_RETAIN_ITEM_DRAWING_LINKS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Retain Item-Drawing Links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a023' SET @a023 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a023', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a024' SET @a024 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a024', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a025' SET @a025 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a025', 'ITEM_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a026' SET @a026 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a026', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a027' SET @a027 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a027', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\AutoCA', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'a028' SET @a028 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a028', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\AutoCA', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'a029' SET @a029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a029', 'GENERATE_NEUTRAL_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a030' SET @a030 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a030', 'NEUTRAL_FILES_GENERATION', '1', 'E', 'pdcad.nufg', '10', @Itr_PropValue) AS INT)-- Generate Neutral Files during (Domain = pdcad.nufg, Type = E)
			ELSE IF @Itr_TargetPropName = 'a031' SET @a031 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a031', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a032' SET @a032 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a032', 'NEUTRAL_FILES_DRAWING_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a033' SET @a033 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a033', 'NEUTRAL_FILES_DRAWING_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a034' SET @a034 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a034', 'LAYOUTS_FOR_BMP_GENERATION', '1', 'E', 'pdcad.bmpl', '10', @Itr_PropValue) AS INT)-- Layouts for BMP Generation (Domain = pdcad.bmpl, Type = E)
			ELSE IF @Itr_TargetPropName = 'a035' SET @a035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a035', 'LAYOUTS_FOR_PDF_GENERATION', '1', 'E', 'pdcad.pdfl', '10', @Itr_PropValue) AS INT)-- Layouts for PDF Generation (Domain = pdcad.pdfl, Type = E)
			ELSE IF @Itr_TargetPropName = 'a036' SET @a036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a036', 'INCLUDE_MODELSPACE_LAYOUT_IN_EVERY_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Include Model Space Layout in every PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a037' SET @a037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a037', 'SET_FILE_NAME_FOR', '1', 'E', 'pdcad.stfn', '10', @Itr_PropValue) AS INT)-- Set filename for (Domain = pdcad.stfn, Type = E)
			ELSE IF @Itr_TargetPropName = 'a038' SET @a038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a038', 'GENERATE_DOCUMENT_ID_BEFORE_DISPLAYING_SET_ATTRIBUTES_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Document-ID before displaying Set Object Attributes dialog (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a039' SET @a039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a039', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME', '1', 'E', 'pdcad.matf', '10', @Itr_PropValue) AS INT)-- Set Item-ID based on (Domain = pdcad.matf, Type = E)
			ELSE IF @Itr_TargetPropName = 'a040' SET @a040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a040', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM', '1', 'E', 'pdcad.actn', '10', @Itr_PropValue) AS INT)-- Action to take if Item-ID exists in PLM database (Domain = pdcad.actn, Type = E)
			ELSE IF @Itr_TargetPropName = 'a041' SET @a041 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a041', 'DUPLICATE_ITEM_IDS_ACTION', '1', 'E', 'pdcad.dupa', '10', @Itr_PropValue) AS INT)-- Action to take when same Item-ID is generated for multiple files (Domain = pdcad.dupa, Type = E)
			ELSE IF @Itr_TargetPropName = 'a042' SET @a042 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a042', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'a043' SET @a043 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a043', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '30', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 'a044' SET @a044 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a044', 'LAYOUT_FOR_THUMBNAIL_GENERATION', '1', 'E', 'pdcad.tmbl', '10', @Itr_PropValue) AS INT)-- Layout for thumbnail generation (Domain = pdcad.tmbl, Type = E)
			ELSE IF @Itr_TargetPropName = 'a045' SET @a045 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a045', 'THUMBNAILS_SIZE', '2', 'S', 'pds255', '', @Itr_PropValue) -- Thumbnails Size (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'a046' SET @a046 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('AUTOCAD', 'a046', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'CATIAV5'
		BEGIN
			IF @Itr_TargetPropName = 'c001' SET @c001 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c001', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'c002' SET @c002 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c002', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'c003' SET @c003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c003', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c004' SET @c004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c004', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c005' SET @c005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c005', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c006' SET @c006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c006', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c007' SET @c007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c007', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c008' SET @c008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c008', 'GENERATE_THUMBNAILS_FOR_PARTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for part file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c009' SET @c009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c009', 'GENERATE_THUMBNAILS_FOR_ASSEMBLIES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for assembly file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c010' SET @c010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c010', 'GENERATE_THUMBNAILS_FOR_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for drawing file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c011' SET @c011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c011', 'USE_THUMBNAIL_OF_ACTIVE_CONFIGURATION_FOR_DEFAULT_CONFIGURATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Use thumbnail information of active configuration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'c012' SET @c012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c012', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '10', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 'c013' SET @c013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('CATIAV5', 'c013', 'THUMBNAIL_TYPE_FOR_GENERATION', '1', 'E', 'pdcad.tmbt', '20', @Itr_PropValue) AS INT)-- Format for thumbnails generation (Domain = pdcad.tmbt, Type = E)
		END

		ELSE IF @InputApp = 'DRAFTSIGHT'
		BEGIN
			IF @Itr_TargetPropName = 'd001' SET @d001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd001', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd002' SET @d002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd002', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '20', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'd003' SET @d003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd003', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'd004' SET @d004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd004', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '10', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'd005' SET @d005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd005', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd006' SET @d006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd006', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd007' SET @d007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd007', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP', '1', 'E', 'pdcad.lobp', '30', @Itr_PropValue) AS INT)-- Action for objects locked by Business Process (Domain = pdcad.lobp, Type = E)
			ELSE IF @Itr_TargetPropName = 'd008' SET @d008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd008', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd009' SET @d009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd009', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'd010' SET @d010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd010', 'DISABLE_ACTIONS_ON_VIEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable actions on view files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd011' SET @d011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd011', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '10', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'd012' SET @d012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd012', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Allow reload of already opened files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd013' SET @d013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd013', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd014' SET @d014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd014', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn user when the same item is linked to parent and child components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd015' SET @d015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd015', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd016' SET @d016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd016', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Meta Data comparison during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd017' SET @d017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd017', 'SKIP_MAPPING_FOR_RELEASED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Mapping for Released files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd018' SET @d018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd018', 'DISABLE_MODIFY_EVENT_PROMPT_TO_CHECK_OUT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable modify event prompt to check-out (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd019' SET @d019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd019', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd020' SET @d020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd020', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd021' SET @d021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd021', 'ITEM_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd022' SET @d022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd022', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd023' SET @d023 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd023', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\AutoCA', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'd024' SET @d024 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd024', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\AutoCA', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'd025' SET @d025 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd025', 'GENERATE_NEUTRAL_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd026' SET @d026 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd026', 'NEUTRAL_FILES_GENERATION', '1', 'E', 'pdcad.nufg', '10', @Itr_PropValue) AS INT)-- Generate Neutral Files during (Domain = pdcad.nufg, Type = E)
			ELSE IF @Itr_TargetPropName = 'd027' SET @d027 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd027', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd028' SET @d028 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd028', 'NEUTRAL_FILES_DRAWING_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd029' SET @d029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd029', 'NEUTRAL_FILES_DRAWING_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd030' SET @d030 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd030', 'LAYOUTS_FOR_BMP_GENERATION', '1', 'E', 'pdcad.bmpl', '10', @Itr_PropValue) AS INT)-- Layouts for BMP Generation (Domain = pdcad.bmpl, Type = E)
			ELSE IF @Itr_TargetPropName = 'd031' SET @d031 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd031', 'LAYOUTS_FOR_PDF_GENERATION', '1', 'E', 'pdcad.pdfl', '10', @Itr_PropValue) AS INT)-- Layouts for PDF Generation (Domain = pdcad.pdfl, Type = E)
			ELSE IF @Itr_TargetPropName = 'd032' SET @d032 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd032', 'INCLUDE_MODELSPACE_LAYOUT_IN_EVERY_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Include Model Space Layout in every PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd033' SET @d033 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd033', 'SET_FILE_NAME_FOR', '1', 'E', 'pdcad.stfn', '10', @Itr_PropValue) AS INT)-- Set filename for (Domain = pdcad.stfn, Type = E)
			ELSE IF @Itr_TargetPropName = 'd034' SET @d034 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd034', 'GENERATE_DOCUMENT_ID_BEFORE_DISPLAYING_SET_ATTRIBUTES_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Document-ID before displaying Set Object Attributes dialog (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd035' SET @d035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd035', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME', '1', 'E', 'pdcad.matf', '10', @Itr_PropValue) AS INT)-- Set Item-ID based on (Domain = pdcad.matf, Type = E)
			ELSE IF @Itr_TargetPropName = 'd036' SET @d036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd036', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM', '1', 'E', 'pdcad.actn', '10', @Itr_PropValue) AS INT)-- Action to take if Item-ID exists in PLM database (Domain = pdcad.actn, Type = E)
			ELSE IF @Itr_TargetPropName = 'd037' SET @d037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd037', 'DUPLICATE_ITEM_IDS_ACTION', '1', 'E', 'pdcad.dupa', '10', @Itr_PropValue) AS INT)-- Action to take when same Item-ID is generated for multiple files (Domain = pdcad.dupa, Type = E)
			ELSE IF @Itr_TargetPropName = 'd038' SET @d038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd038', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'd039' SET @d039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd039', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '30', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 'd040' SET @d040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd040', 'LAYOUT_FOR_THUMBNAIL_GENERATION', '1', 'E', 'pdcad.tmbl', '10', @Itr_PropValue) AS INT)-- Layout for thumbnail generation (Domain = pdcad.tmbl, Type = E)
			ELSE IF @Itr_TargetPropName = 'd041' SET @d041 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd041', 'THUMBNAILS_SIZE', '2', 'S', 'pds255', '', @Itr_PropValue) -- Thumbnails Size (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'd042' SET @d042 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('DRAFTSIGHT', 'd042', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'INVENTOR'
		BEGIN
			IF @Itr_TargetPropName = 'i001' SET @i001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i001', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '20', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'i002' SET @i002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i002', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'i003' SET @i003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i003', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i004' SET @i004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i004', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '10', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'i005' SET @i005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i005', 'ATTACH_RELATED_MODELS_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach related Models/Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i006' SET @i006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i006', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i007' SET @i007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i007', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i008' SET @i008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i008', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP', '1', 'E', 'pdcad.lobp', '30', @Itr_PropValue) AS INT)-- Action for objects locked by Business Process (Domain = pdcad.lobp, Type = E)
			ELSE IF @Itr_TargetPropName = 'i009' SET @i009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i009', 'WKFL_ATTACH_UNDEFINED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach Draft Objects Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i010' SET @i010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i010', 'WKFL_ATTACH_ALL_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach All Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i011' SET @i011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i011', 'MAP_BALOONNING_INFORMATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Transfer Ballooning Information (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i012' SET @i012 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i012', 'PART_LIST_TABLE_FIELD', '3', 'S', 'pds020', 'FIND_NO', @Itr_PropValue) -- Field in Part List table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i013' SET @i013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i013', 'WARN_FOR_DUPLICATE_BALOON_IDS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for duplicate Balloon IDs (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i014' SET @i014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i014', 'WARN_FOR_INCORRECT_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incorrect Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i015' SET @i015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i015', 'WARN_FOR_INCOMPLETE_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incomplete Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i016' SET @i016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i016', 'READ_BALLOON_VALUES_FROM_ASSEMBLY_BOM_TABLE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Read balloon numbers from Assembly BOM table (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i017' SET @i017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i017', 'PROMPT_ITEM_CREATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Prompt to create Items/BOM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i018' SET @i018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i018', 'CREATE_ITEMS_FOR_EXISTING_FILES_IN_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create item for file not linked to an item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i019' SET @i019 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i019', 'BOM_CONTROL_ITEM_ATTRIBUTE', '3', 'S', 'pds020', '', @Itr_PropValue) -- Name of PLM Item property, to control BOM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i020' SET @i020 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i020', 'MATERIAL_ID_PROPERTY_GROUP', '3', 'S', 'pds020', '', @Itr_PropValue) -- Material ID property group (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i021' SET @i021 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i021', 'MATERIAL_ID_PROPERTY_NAME', '3', 'S', 'pds020', '', @Itr_PropValue) -- Material ID property name (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i022' SET @i022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i022', 'ERR_ON_EMPTY_MATERIAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Stop save to PLM when material ID is empty (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i023' SET @i023 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i023', 'TYPICAL_ASSEMBLY_TAG_FOR_BOM_MOVE', '3', 'S', 'pds020', 'TYP', @Itr_PropValue) -- Typical assembly tag (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i024' SET @i024 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i024', 'PIECEMARK_ITEM_UNIT_SET', '3', 'S', 'pds020', 'Default Unit Set -00', @Itr_PropValue) -- Piecemark item unit set (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i025' SET @i025 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i025', 'PIECEMARK_ITEM_UNIT_OF_MEASURE', '3', 'S', 'pds020', 'EAF', @Itr_PropValue) -- Piecemark item unit of measure (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i026' SET @i026 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i026', 'PIECEMARK_ITEM_ORDER_POLICY', '3', 'S', 'pds050', 'Anonymous', @Itr_PropValue) -- Piecemark item order policy (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'i027' SET @i027 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i027', 'PIECEMARK_ITEM_TYPE', '3', 'S', 'pds050', '', @Itr_PropValue) -- Piecemark item type (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'i028' SET @i028 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i028', 'GROUP_HARDWARE_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Group hardware (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i029' SET @i029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i029', 'INCORRECT_ITEM_GROUP_SHOW_ERROR', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show error on incorrect item group (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i030' SET @i030 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i030', 'GROUP_HARDWARE_SPARE_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Group spare hardware (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i031' SET @i031 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i031', 'HARDWARE_SPARE_MINIMUM_PROPNAME', '3', 'S', 'pds020', 'SpareMin', @Itr_PropValue) -- Spare hardware minimum property (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i032' SET @i032 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i032', 'HARDWARE_SPARE_PERCENT_PROPNAME', '3', 'S', 'pds020', 'SparePercent', @Itr_PropValue) -- Spare hardware percent property (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i033' SET @i033 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i033', 'HARDWARE_SPARE_MINIMUM_PROPGROUP', '3', 'S', 'pds020', 'Custom', @Itr_PropValue) -- Spare hardware minimum property group (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i034' SET @i034 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i034', 'HARDWARE_SPARE_PERCENT_PROPGROUP', '3', 'S', 'pds020', 'Custom', @Itr_PropValue) -- Spare hardware percent property group (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i035' SET @i035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i035', 'CLEAR_AND_RECREATE_BOM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Clear all BOM during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i036' SET @i036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i036', 'ENABLE_DOWNLOAD_MULTIPLE_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Download Multiple Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i037' SET @i037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i037', 'ENABLE_SAVE_OLDER_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Save Older Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i038' SET @i038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i038', 'DISABLE_UNUSED_ROWS_DURING_EFI', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable unused rows during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i039' SET @i039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i039', 'WARN_REVISION_SWITCH_IN_DOWNLOAD_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when different File Version is selected during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i040' SET @i040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i040', 'WARN_REPLACE_PLM_UNDEFINED_FILE_DURING_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when replacing Draft File during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i041' SET @i041 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i041', 'ASSIGN_DEFAULT_MAPPING_TEMPLATES_ONLY_FOR_THE_NEW_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Assign Default Mapping Template Only for the new files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i042' SET @i042 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i042', 'DEFAULT_MAPPING_TEMPLATE_PART_FILES', '1', 'S', 'pds050', '', @Itr_PropValue) -- Default mapping template for part files (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'i043' SET @i043 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i043', 'DEFAULT_MAPPING_TEMPLATE_ASSEMBLY_FILES', '1', 'S', 'pds050', '', @Itr_PropValue) -- Default mapping template for Assembly files (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'i044' SET @i044 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i044', 'DEFAULT_MAPPING_TEMPLATE_DRAWING_FILES', '1', 'S', 'pds050', '', @Itr_PropValue) -- Default mapping template for Drawing files (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'i045' SET @i045 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i045', 'RESOLVE_MISSING_CONTENT_CENTER_FILES_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Resolve missing Content Center files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i046' SET @i046 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i046', 'SKIP_REPLACE_REFERENCES_OF_COMPONENTS_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip replace references of component files During Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i047' SET @i047 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i047', 'UPDATE_OUT_OF_DATE_FILES_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Update CAD structure which are out of date with Drivers (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i048' SET @i048 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i048', 'SKIP_SAVE_OF_ROOT_AFTER_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Save of root file after Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i049' SET @i049 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i049', 'DEFER_AUTOMATIC_UPDATES_TO_DRAWINGS_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Defer automatic updates to drawings during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i050' SET @i050 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i050', 'SKIP_CAD_AND_PLM_STRUCTURE_COMPARISON', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip CAD and PLM structure comparison (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i051' SET @i051 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i051', 'DO_NOT_DOWNLOAD_LIBRARY_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not process library files during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i052' SET @i052 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i052', 'OPEN_ASSEMBLY_WITH_LAST_ACTIVE_LOD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Open assembly in last active level of detail representation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i053' SET @i053 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i053', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i054' SET @i054 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i054', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '10', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'i055' SET @i055 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i055', 'DISABLE_ACTIONS_ON_VIEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable actions on view files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i056' SET @i056 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i056', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '30', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'i057' SET @i057 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i057', 'SAVE_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i058' SET @i058 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i058', 'DOWNLOAD_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Download Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i059' SET @i059 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i059', 'USE_PACKAGE_ASSEMBLIES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable PLM command 'Toggle Flagged as Package' (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i060' SET @i060 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i060', 'SAVE_ALL_IPART_INSTANCES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save All iPart Instances (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i061' SET @i061 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i061', 'REPLACE_FILES_FROM_CC_LIBRARY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Search And Replace files from Content Center during Save. (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i062' SET @i062 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i062', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn user when the same item is linked to parent and child components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i063' SET @i063 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i063', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i064' SET @i064 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i064', 'SKIP_MAPPING_FOR_RELEASED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Mapping for RELEASED files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i065' SET @i065 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i065', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Meta Data comparision during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i066' SET @i066 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i066', 'WARN_FOR_MISSING_CHECKIN_SPECIFIC_MODIFIED_MAPPING_XML_FILE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for missing CheckIn specific modified mapping XML file (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i067' SET @i067 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i067', 'SET_CAD_INSTANCE_NAME_AS_ITEM_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set CAD Instance Name as Item-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i068' SET @i068 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i068', 'GENERATE_ITEM_FOR_ALL_CONFIGURATIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Items for all configurations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i069' SET @i069 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i069', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow reload of already opened files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i070' SET @i070 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i070', 'CREATE_SEPERATE_BOM_LINES_FOR_COMPONENT_FILES_LINKED_TO_SAME_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create separate BOM lines for component files linked to same item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i071' SET @i071 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i071', 'CREATE_DOCUMENT_OBJECT_FOR_PRESENTATION_FILE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Document Object for Presentation File (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i072' SET @i072 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i072', 'ALLOW_PLM_OPERATIONS_ON_NON_MASTER_LOD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Allow PLM Operations on Non-Master LOD (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i073' SET @i073 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i073', 'SET_ERP_DEFAULT_ITEM_DATA_AUTOMATICALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Update items with "ERP Item Default Data" automatically (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i074' SET @i074 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i074', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i075' SET @i075 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i075', 'DETECT_BOM_QUANTITY_ERRORS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Detect BOM Quantity Errors (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i076' SET @i076 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i076', 'CHECKIN_ALL_UNDEFINED_OBJS_IN_STRUCTURE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- CheckIn all Draft Objects in structure (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i077' SET @i077 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i077', 'TREAT_DWG_FILES_AS_INVENTOR_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Treat DWG Files as Inventor Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i078' SET @i078 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i078', 'PLM_RETAIN_ITEM_DRAWING_LINKS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Retain Item-Drawing Links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i079' SET @i079 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i079', 'DOWNLOAD_NEUTRAL_FILES_DURING_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Download Neutral Files during Edit/View File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i080' SET @i080 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i080', 'MATCH_FILENAME_TO_FILEID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Rename Files to match File IDs (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i081' SET @i081 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i081', 'SHOW_RESOLVE_DIALOG_DEF_VALUE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Default setting for Create New in Resolve File Dialog (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i082' SET @i082 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i082', 'DISABLE_BOM_MODIFICATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable BOM Creation/Modification during "Save" (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i083' SET @i083 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i083', 'COMPARE_AND_WARN_LOCAL_PLM_MODELS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when the model is different from PLM copy (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i084' SET @i084 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i084', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i085' SET @i085 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i085', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i086' SET @i086 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i086', 'MUST_ASSIGN_AN_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Must assign an Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i087' SET @i087 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i087', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i088' SET @i088 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i088', 'ITEM_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i089' SET @i089 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i089', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i090' SET @i090 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i090', 'SAVE_FILES_INTO_ROOT_FILE_PROJECT', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save children files into the same project as the root file (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i091' SET @i091 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i091', 'ENABLE_LINK_TO_EXISTING_ITEM_FOLDER', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Automatic Link to Item and/or Folder (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i092' SET @i092 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i092', 'ITEM_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'ITEM_ID', @Itr_PropValue) -- Item ID property name (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i093' SET @i093 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i093', 'FOLDER_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'FOLDER_ID', @Itr_PropValue) -- Folder ID property name (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i094' SET @i094 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i094', 'FOLDERALT_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'FOLDERALT_ID', @Itr_PropValue) -- Alternate Folder ID Property (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i095' SET @i095 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i095', 'LTI_DLG_CREATE_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Item Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i096' SET @i096 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i096', 'LTI_DLG_LINK_ITEM_TO_DOC', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link to Document Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i097' SET @i097 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i097', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Invent', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'i098' SET @i098 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i098', 'USE_INVENTOR_PROJECT_FOR_EDIT_LOCATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Use Inventor Project Location (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i099' SET @i099 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i099', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Invent', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'i100' SET @i100 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i100', 'USE_INVENTOR_PROJECT_FOR_VIEW_LOCATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Use Inventor Project Location (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i101' SET @i101 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i101', 'SAVE_MODIFIED_FILES_ONLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save only modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i102' SET @i102 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i102', 'DO_NOT_TRAVERSE_CHILDS_OF_NONMODIFIED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Do not traverse child files under non-modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i103' SET @i103 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i103', 'GENERATE_NEUTRAL_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i104' SET @i104 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i104', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i105' SET @i105 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i105', 'NEUTRAL_FILES_GENERATION', '1', 'E', 'pdcad.nufg', '10', @Itr_PropValue) AS INT)-- Generate Neutral Files during (Domain = pdcad.nufg, Type = E)
			ELSE IF @Itr_TargetPropName = 'i106' SET @i106 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i106', 'NEUTRAL_FILES_ASSEMBLY_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i107' SET @i107 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i107', 'NEUTRAL_FILES_ASSEMBLY_DWF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i108' SET @i108 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i108', 'NEUTRAL_FILES_ASSEMBLY_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i109' SET @i109 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i109', 'NEUTRAL_FILES_ASSEMBLY_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i110' SET @i110 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i110', 'NEUTRAL_FILES_ASSEMBLY_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i111' SET @i111 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i111', 'NEUTRAL_FILES_DRAWING_NONE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i112' SET @i112 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i112', 'NEUTRAL_FILES_DRAWING_DWF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i113' SET @i113 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i113', 'NEUTRAL_FILES_DRAWING_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i114' SET @i114 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i114', 'NEUTRAL_FILES_DRAWING_DXF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DXF format (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i115' SET @i115 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i115', 'NEUTRAL_FILES_FOR_IPARTS_NONE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i116' SET @i116 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i116', 'NEUTRAL_FILES_FOR_IPARTS_DWF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i117' SET @i117 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i117', 'NEUTRAL_FILES_FOR_IPARTS_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i118' SET @i118 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i118', 'NEUTRAL_FILES_FOR_ALL_INSTANCES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate For All Instances (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i119' SET @i119 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i119', 'NEUTRAL_FILES_IPARTS_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i120' SET @i120 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i120', 'NEUTRAL_FILES_IPARTS_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i121' SET @i121 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i121', 'NEUTRAL_FILES_PARTS_NONE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i122' SET @i122 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i122', 'NEUTRAL_FILES_PARTS_DWF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i123' SET @i123 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i123', 'NEUTRAL_FILES_PARTS_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i124' SET @i124 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i124', 'NEUTRAL_FILES_PARTS_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i125' SET @i125 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i125', 'NEUTRAL_FILES_PARTS_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i126' SET @i126 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i126', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME', '1', 'E', 'pdcad.matf', '10', @Itr_PropValue) AS INT)-- Set Item-ID based on (Domain = pdcad.matf, Type = E)
			ELSE IF @Itr_TargetPropName = 'i127' SET @i127 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i127', 'DUPLICATE_ITEM_IDS_ACTION', '1', 'E', 'pdcad.dupa', '10', @Itr_PropValue) AS INT)-- Action to take when same Item-ID is generated for multiple files (Domain = pdcad.dupa, Type = E)
			ELSE IF @Itr_TargetPropName = 'i128' SET @i128 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i128', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM', '1', 'E', 'pdcad.actn', '10', @Itr_PropValue) AS INT)-- Action to take if Item-ID exists in PLM database (Domain = pdcad.actn, Type = E)
			ELSE IF @Itr_TargetPropName = 'i129' SET @i129 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i129', 'CUSTOM_PROPERTY_TO_USE_AS_ITEM_ID', '3', 'S', 'pds255', '', @Itr_PropValue) -- Custom property to use as Item-ID (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'i130' SET @i130 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i130', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i131' SET @i131 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i131', 'GENERATE_THUMBNAILS_FOR_PARTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for part file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i132' SET @i132 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i132', 'GENERATE_THUMBNAILS_FOR_ASSEMBLIES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for assembly file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i133' SET @i133 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i133', 'GENERATE_THUMBNAILS_FOR_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for drawing file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i134' SET @i134 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i134', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '10', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 'i135' SET @i135 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i135', 'THUMBNAIL_TYPE_FOR_GENERATION', '1', 'E', 'pdcad.tmbt', '20', @Itr_PropValue) AS INT)-- Format for thumbnails generation (Domain = pdcad.tmbt, Type = E)
			ELSE IF @Itr_TargetPropName = 'i136' SET @i136 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i136', 'THUMBNAILS_SIZE', '2', 'S', 'pds020', '1000,1000', @Itr_PropValue) -- Thumbnails Size (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'i137' SET @i137 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i137', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i138' SET @i138 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i138', 'LINK_TO_EXISTING_ITEM_IN_PLM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Link to Existing Item in PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'i139' SET @i139 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('INVENTOR', 'i139', 'PCS_SUB_PROJS_NO_SPARE_GROUP', '3', 'S', 'pds050', 'AW,AA,AU,AS', @Itr_PropValue) -- List of site prefixes that do not require spare folder (Domain = pds050, Type = S)
		END

		ELSE IF @InputApp = 'ME10'
		BEGIN
			IF @Itr_TargetPropName = 'm001' SET @m001 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm001', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Me10\W', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'm002' SET @m002 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm002', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Me10\W', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'm003' SET @m003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm003', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'm004' SET @m004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm004', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'm005' SET @m005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm005', 'DISABLE_SET_MAIN_ITEM_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable Showing Dialog for setting Main Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'm006' SET @m006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm006', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'm007' SET @m007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm007', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '20', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'm008' SET @m008 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('ME10', 'm008', 'THUMBNAILS_SIZE', '2', 'S', 'pds020', '1000,1000', @Itr_PropValue) -- Thumbnails Size (Domain = pds020, Type = S)
		END

		ELSE IF @InputApp = 'MSOFFICE'
		BEGIN			
			IF @Itr_TargetPropName = 'o001' SET @o001 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o001', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Office', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'o002' SET @o002 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o002', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\Office', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'o003' SET @o003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o003', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o004' SET @o004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o004', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'o005' SET @o005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o005', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '20', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'o006' SET @o006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o006', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o007' SET @o007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o007', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o008' SET @o008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o008', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o009' SET @o009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o009', 'APPLY_PI_NAMING_CONVENTION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o010' SET @o010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o010', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '10', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'o011' SET @o011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o011', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o012' SET @o012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o012', 'WKFL_ATTACH_UNDEFINED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach Draft Objects Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o013' SET @o013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o013', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o014' SET @o014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o014', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'o015' SET @o015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o015', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'o016' SET @o016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o016', 'ENABLE_LINK_TO_EXISTING_ITEM_FOLDER', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Automatic Link to Item and/or Folder (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o017' SET @o017 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o017', 'ITEM_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'ITEM_ID', @Itr_PropValue) -- Item ID property name (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'o018' SET @o018 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o018', 'FOLDER_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'FOLDER_ID', @Itr_PropValue) -- Folder ID property name (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'o019' SET @o019 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o019', 'FOLDERALT_ID_ATTR_ON_FILE', '3', 'S', 'pds020', 'FOLDERALT_ID', @Itr_PropValue) -- Alternate Folder ID Property (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'o020' SET @o020 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o020', 'THUMBNAILS_SIZE', '2', 'S', 'pds020', '1000,1000', @Itr_PropValue) -- Thumbnails Size (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'o021' SET @o021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o021', 'APPLY_TOCAD_MAPPING_ON_EMPTY_PROPS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Fill ToCAD Mapping values only in blank fields (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o022' SET @o022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o022', 'ASSIGN_DEFAULT_MAPPING_TEMPLATES_ONLY_FOR_THE_NEW_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Assign Default Mapping Template Only for the new files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o023' SET @o023 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o023', 'DEFAULT_MAPPING_TEMPLATE_OUTLOOK', '3', 'S', 'pds020', '', @Itr_PropValue) -- Default Mapping Template for Outlook Files (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'o024' SET @o024 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o024', 'SETUPTODATE_WAIT_FOR_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Synchronize PDF generation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o026' SET @o026 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o026', 'APPEND_RECEIVED_TIME_TO_FILENAME', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Append Received Time on the Outlook Message to the filename (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o027' SET @o027 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('MSOFFICE', 'o027', 'DISABLE_WORKBOOK_CALCULATION_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not calculate the formulas during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o028' SET @o028 = '2' -- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o029' SET @o029 = '1' -- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o030' SET @o030 = '1' -- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o031' SET @o031 = '2' -- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o032' SET @o032 = '1' -- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o033' SET @o033 = '2' -- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o034' SET @o034 = '1' -- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'o035' SET @o035 = '2' -- PDF (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'PROE'
		BEGIN
			IF @Itr_TargetPropName = 'p001' SET @p001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p001', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'p002' SET @p002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p002', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 'p003' SET @p003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p003', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p004' SET @p004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p004', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '30', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'p005' SET @p005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p005', 'ATTACH_RELATED_MODELS_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach related Models/Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p006' SET @p006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p006', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p007' SET @p007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p007', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p008' SET @p008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p008', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP', '1', 'E', 'pdcad.lobp', '30', @Itr_PropValue) AS INT)-- Action for objects locked by Business Process (Domain = pdcad.lobp, Type = E)
			ELSE IF @Itr_TargetPropName = 'p009' SET @p009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p009', 'WKFL_ATTACH_UNDEFINED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach Draft Objects Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p010' SET @p010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p010', 'WKFL_ATTACH_ALL_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach All Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p011' SET @p011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p011', 'MAP_BALOONNING_INFORMATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Transfer Ballooning Information (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p012' SET @p012 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p012', 'PART_LIST_TABLE_FIELD', '3', 'S', 'pds020', 'FIND_NO', @Itr_PropValue) -- Field in Part List table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p013' SET @p013 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p013', 'BALLOON_FIELD_ON_PROE_FILE', '3', 'S', 'pds020', 'FIND_NO', @Itr_PropValue) -- Component parameter for Balloon Mapping (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p014' SET @p014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p014', 'WARN_FOR_DUPLICATE_BALOON_IDS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for duplicate Balloon IDs (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p015' SET @p015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p015', 'WARN_FOR_INCORRECT_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incorrect Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p016' SET @p016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p016', 'WARN_FOR_INCOMPLETE_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incomplete Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p017' SET @p017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p017', 'ENABLE_DOWNLOAD_MULTIPLE_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Download Multiple Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p018' SET @p018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p018', 'ENABLE_SAVE_OLDER_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Save Older Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p019' SET @p019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p019', 'DISABLE_UNUSED_ROWS_DURING_EFI', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Disable unused rows during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p020' SET @p020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p020', 'WARN_REVISION_SWITCH_IN_DOWNLOAD_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when different File Version is selected during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p021' SET @p021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p021', 'WARN_REPLACE_PLM_UNDEFINED_FILE_DURING_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when replacing Draft File during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p022' SET @p022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p022', 'RENAME_FAMILY_TABLE_INSTANCES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Rename Family Table Instances (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p023' SET @p023 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p023', 'ASSIGN_DEFAULT_MAPPING_TEMPLATES_ONLY_FOR_THE_NEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Assign Default Mapping Template Only for the new files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p024' SET @p024 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p024', 'DEFAULT_MAPPING_TEMPLATE_PART_FILES', '1', 'S', 'pds020', '', @Itr_PropValue) -- Default mapping template for part files (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p025' SET @p025 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p025', 'DEFAULT_MAPPING_TEMPLATE_ASSEMBLY_FILES', '1', 'S', 'pds020', '', @Itr_PropValue) -- Default mapping template for Assembly files (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p026' SET @p026 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p026', 'DEFAULT_MAPPING_TEMPLATE_DRAWING_FILES', '1', 'S', 'pds020', '', @Itr_PropValue) -- Default mapping template for Drawing files (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p027' SET @p027 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p027', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p028' SET @p028 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p028', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '10', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'p029' SET @p029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p029', 'DISABLE_ACTIONS_ON_VIEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable actions on view files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p030' SET @p030 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p030', 'SAVE_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p031' SET @p031 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p031', 'DOWNLOAD_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Download Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p032' SET @p032 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p032', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show message on successful open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p033' SET @p033 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p033', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '30', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'p034' SET @p034 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p034', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn user when the same item is linked to parent and child components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p035' SET @p035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p035', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p036' SET @p036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p036', 'SKIP_MAPPING_FOR_RELEASED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Mapping for RELEASED files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p037' SET @p037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p037', 'ENABLE_PHANTOM_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set as PHANTOM Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p038' SET @p038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p038', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Meta Data comparision during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p039' SET @p039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p039', 'WARN_FOR_MISSING_CHECKIN_SPECIFIC_MODIFIED_MAPPING_XML_FILE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for missing CheckIn specific modified mapping XML file (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p040' SET @p040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p040', 'SET_CAD_INSTANCE_NAME_AS_ITEM_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set CAD Instance Name as Item-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p041' SET @p041 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p041', 'GENERATE_ITEM_FOR_ALL_CONFIGURATIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Items for all configurations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p042' SET @p042 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p042', 'SAVE_EXTERNAL_REFERENCE_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save External References (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p043' SET @p043 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p043', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow reload of already opened files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p044' SET @p044 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p044', 'REFRESH_FILES_FROM_PLM_ON_LOCAL_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Refresh files from PLM on local open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p045' SET @p045 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p045', 'CREATE_SEPERATE_BOM_LINES_FOR_COMPONENT_FILES_LINKED_TO_SAME_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create separate BOM lines for component files linked to same item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p046' SET @p046 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p046', 'ACTION_TO_TAKE_WHEN_MC_ERRORS_IS_NON_ZERO', '1', 'E', 'pdcad.mcer', '10', @Itr_PropValue) AS INT)-- Action to be taken when MC_ERROR has non zero value (Domain = pdcad.mcer, Type = E)
			ELSE IF @Itr_TargetPropName = 'p047' SET @p047 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p047', 'SET_ERP_DEFAULT_ITEM_DATA_AUTOMATICALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Update items with "ERP Item Default Data" automatically (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p048' SET @p048 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p048', 'PLM_RETAIN_ITEM_DRAWING_LINKS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Retain Item-Drawing Links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p049' SET @p049 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p049', 'ADD_NON_EDITABLE_COMPONENT_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show drawings of non-Editable components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p050' SET @p050 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p050', 'LOOK_FOR_ADDITIONAL_DRAWINGS_IN_STORAGE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Look for additional drawings in the storage files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p051' SET @p051 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p051', 'FORCE_LINK_TO_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Force Link to Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p052' SET @p052 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p052', 'DISALLOW_OBSOLETE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not save OBSOLETE objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p053' SET @p053 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p053', 'CREATE_BOM_USING_MASTER_REP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create BOM using Master representation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p054' SET @p054 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p054', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p055' SET @p055 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p055', 'MUST_ASSIGN_AN_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Must assign an Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p056' SET @p056 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p056', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p057' SET @p057 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p057', 'ITEM_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p058' SET @p058 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p058', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p059' SET @p059 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p059', 'GENERATE_OBJECT_IDS_BASED_ON_ITEM_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Object-IDs based on Item-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p060' SET @p060 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p060', 'LTI_DLG_CREATE_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Item Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p061' SET @p061 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p061', 'LTI_DLG_LINK_ITEM_TO_DOC', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link to Document Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p062' SET @p062 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p062', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\ProE_W', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'p063' SET @p063 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p063', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\ProE_W', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'p064' SET @p064 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p064', 'READ_ACTIVE_FEAT_REFERENCES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Read external references of active features only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p065' SET @p065 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p065', 'READ_ACTIVE_STRUCTURE_FILE_REFERENCES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Read external references of components in current structure only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p066' SET @p066 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p066', 'SAVE_MODIFIED_FILES_ONLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save only modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p067' SET @p067 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p067', 'DO_NOT_TRAVERSE_CHILDS_OF_NONMODIFIED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Do not traverse child files under non-modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p068' SET @p068 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p068', 'SAVE_AND_DOWNLOAD_BACKUP_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save and Download backup files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p069' SET @p069 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p069', 'NUMBER_OF_BACKUP_VERSOINS_TO_DOWNLOAD', '3', 'S', 'pds020', 'All', @Itr_PropValue) -- Number of last backup file versions to download (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p070' SET @p070 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p070', 'GENERATE_NEUTRAL_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p071' SET @p071 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p071', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p072' SET @p072 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p072', 'NEUTRAL_FILES_GENERATION', '1', 'E', 'pdcad.nufg', '10', @Itr_PropValue) AS INT)-- Generate Neutral Files during (Domain = pdcad.nufg, Type = E)
			ELSE IF @Itr_TargetPropName = 'p073' SET @p073 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p073', 'GENERATE_3D_PDFS_FOR_MODELS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate 3D PDFs for Model files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p074' SET @p074 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p074', 'NEUTRAL_FILES_ASSEMBLY_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p075' SET @p075 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p075', 'NEUTRAL_FILES_ASSEMBLY_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p076' SET @p076 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p076', 'NEUTRAL_FILES_ASSEMBLY_TIFF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- TIFF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p077' SET @p077 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p077', 'NEUTRAL_FILES_ASSEMBLY_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p078' SET @p078 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p078', 'NEUTRAL_FILES_ASSEMBLY_JPEG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- JPEG (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p079' SET @p079 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p079', 'NEUTRAL_FILES_ASSEMBLY_VRML', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- VRML (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p080' SET @p080 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p080', 'NEUTRAL_FILES_ASSEMBLY_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p081' SET @p081 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p081', 'NEUTRAL_FILES_ASSEMBLY_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p082' SET @p082 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p082', 'NEUTRAL_FILES_ASSEMBLY_PVS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVS (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p083' SET @p083 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p083', 'NEUTRAL_FILES_ASSEMBLY_PVZ', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVZ (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p084' SET @p084 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p084', 'NEUTRAL_FILES_DRAWING_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p085' SET @p085 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p085', 'NEUTRAL_FILES_DRAWING_CGM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- CGM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p086' SET @p086 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p086', 'NEUTRAL_FILES_DRAWING_DXF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DXF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p087' SET @p087 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p087', 'NEUTRAL_FILES_DRAWING_DWG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWG (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p088' SET @p088 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p088', 'NEUTRAL_FILES_DRAWING_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p089' SET @p089 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p089', 'DRAWING_CONTAINS_OLEOBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Drawing contains OLE Object (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p090' SET @p090 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p090', 'FONT_FOR_PDF_GENERATION', '1', 'E', 'pdcad.fpdf', '10', @Itr_PropValue) AS INT)-- Font for PDF generation (Domain = pdcad.fpdf, Type = E)
			ELSE IF @Itr_TargetPropName = 'p091' SET @p091 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p091', 'EXPORT_LAYERS_PDF_GENERATION', '1', 'E', 'pdcad.lpdf', '10', @Itr_PropValue) AS INT)-- Layers Export Settings (Domain = pdcad.lpdf, Type = E)
			ELSE IF @Itr_TargetPropName = 'p092' SET @p092 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p092', 'NEUTRAL_FILES_DRAWING_PVS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVS (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p093' SET @p093 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p093', 'NEUTRAL_FILES_DRAWING_PVZ', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVZ (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p094' SET @p094 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p094', 'PDF_SEARCHABLE_TEXT', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Add Searchable Text (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p095' SET @p095 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p095', 'NEUTRAL_FILES_FOR_ALL_INSTANCES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate For All Instances (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p096' SET @p096 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p096', 'NEUTRAL_FILES_PARTS_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p097' SET @p097 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p097', 'NEUTRAL_FILES_PARTS_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p098' SET @p098 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p098', 'NEUTRAL_FILES_PARTS_TIFF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- TIFF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p099' SET @p099 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p099', 'NEUTRAL_FILES_PARTS_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p100' SET @p100 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p100', 'NEUTRAL_FILES_PARTS_JPEG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- JPEG (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p101' SET @p101 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p101', 'NEUTRAL_FILES_PARTS_VRML', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- VRML (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p102' SET @p102 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p102', 'NEUTRAL_FILES_PARTS_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p103' SET @p103 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p103', 'NEUTRAL_FILES_PARTS_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p104' SET @p104 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p104', 'NEUTRAL_FILES_PARTS_PVS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVS (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p105' SET @p105 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p105', 'NEUTRAL_FILES_PARTS_PVZ', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PVZ (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p106' SET @p106 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p106', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME', '1', 'E', 'pdcad.matf', '10', @Itr_PropValue) AS INT)-- Set Item-ID based on (Domain = pdcad.matf, Type = E)
			ELSE IF @Itr_TargetPropName = 'p107' SET @p107 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p107', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM', '1', 'E', 'pdcad.actn', '30', @Itr_PropValue) AS INT)-- Action to take if Item-ID exists in PLM database (Domain = pdcad.actn, Type = E)
			ELSE IF @Itr_TargetPropName = 'p108' SET @p108 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p108', 'DUPLICATE_ITEM_IDS_ACTION', '1', 'E', 'pdcad.dupa', '10', @Itr_PropValue) AS INT)-- Action to take when same Item-ID is generated for multiple files (Domain = pdcad.dupa, Type = E)
			ELSE IF @Itr_TargetPropName = 'p109' SET @p109 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p109', 'PART_TEMPLATE', '4', 'S', 'pds255', '', @Itr_PropValue) -- Part template (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'p110' SET @p110 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p110', 'ASSEMBLY_TEMPLATE', '4', 'S', 'pds255', '', @Itr_PropValue) -- Assembly template (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'p111' SET @p111 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p111', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p112' SET @p112 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p112', 'GENERATE_THUMBNAILS_FOR_PARTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for part file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p113' SET @p113 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p113', 'GENERATE_THUMBNAILS_FOR_ASSEMBLIES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for assembly file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p114' SET @p114 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p114', 'GENERATE_THUMBNAILS_FOR_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for drawing file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'p115' SET @p115 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p115', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '10', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 'p116' SET @p116 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p116', 'THUMBNAIL_TYPE_FOR_GENERATION', '1', 'E', 'pdcad.tmbt', '20', @Itr_PropValue) AS INT)-- Format for thumbnails generation (Domain = pdcad.tmbt, Type = E)
			ELSE IF @Itr_TargetPropName = 'p117' SET @p117 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p117', 'THUMBNAILS_SIZE', '2', 'S', 'pds020', '1000,1000', @Itr_PropValue) -- Thumbnails Size (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'p118' SET @p118 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('PROE', 'p118', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'SOLIDEDGE'
		BEGIN			
			IF @Itr_TargetPropName = 'e001' SET @e001 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e001', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'e002' SET @e002 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e002', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'e003' SET @e003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e003', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e004' SET @e004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e004', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e005' SET @e005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e005', 'DISABLE_SET_MAIN_ITEM_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable Showing Dialog for setting Main Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e006' SET @e006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e006', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '10', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'e007' SET @e007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e007', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '30', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'e008' SET @e008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e008', 'ENABLE_SELECTIVE_CHECKOUT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Selective Checkout (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e009' SET @e009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e009', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e010' SET @e010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e010', 'DOWNLOAD_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Download Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e011' SET @e011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e011', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e012' SET @e012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e012', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e013' SET @e013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e013', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Meta Data comparision during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e014' SET @e014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e014', 'SAVE_EXTERNAL_REFERENCE_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save External References (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e015' SET @e015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e015', 'PROCESS_IMPACTED_DOCUMENTS_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Process Impacted Documents during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e016' SET @e016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e016', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e017' SET @e017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e017', 'MAP_BALOONNING_INFORMATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Transfer Ballooning Information (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e018' SET @e018 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e018', 'PART_LIST_TABLE_FIELD', '3', 'S', 'pds020', 'FIND_NO', @Itr_PropValue) -- Field in Part List table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 'e019' SET @e019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e019', 'WARN_FOR_DUPLICATE_BALOON_IDS', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn for duplicate Balloon IDs (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e020' SET @e020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e020', 'WARN_FOR_INCORRECT_BALLOONING', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn for incorrect Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e021' SET @e021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e021', 'WARN_FOR_INCOMPLETE_BALLOONING', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn for incomplete Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e022' SET @e022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e022', 'APPLY_BALLOONING_INFO_OF_NONDEFAULT_CFG_TO_DEFAULT_CFG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Apply Ballooning values of non-default configuration to default config (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'e023' SET @e023 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDEDGE', 'e023', 'BALLOON_MAPPING_DO_NOT_ADD_LEADING_ZEROES_TO_FIND_NO', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not prefix leading zeroes to find number (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'SOLIDWORKS'
		BEGIN				
			IF @Itr_TargetPropName = 's001' SET @s001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's001', 'CHECK_IN_CLEANUP', '1', 'E', 'pdcad.clnp', '20', @Itr_PropValue) AS INT)-- Check In Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 's002' SET @s002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's002', 'SAVE_AND_UNLOCK_CLEANUP', '1', 'E', 'pdcad.clnp', '10', @Itr_PropValue) AS INT)-- Save and Unlock Cleanup (Domain = pdcad.clnp, Type = E)
			ELSE IF @Itr_TargetPropName = 's003' SET @s003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's003', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show message on successful save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's004' SET @s004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's004', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP', '1', 'E', 'pdcad.lobp', '30', @Itr_PropValue) AS INT)-- Action for objects locked by Business Process (Domain = pdcad.lobp, Type = E)
			ELSE IF @Itr_TargetPropName = 's005' SET @s005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's005', 'ALLOW_EDIT_WORKFLOW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow edit Workflow (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's006' SET @s006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's006', 'ATTACH_RELATED_MODELS_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach related Models/Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's007' SET @s007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's007', 'ATTACHED_TO_BP', '1', 'E', 'pdcad.atbp', '10', @Itr_PropValue) AS INT)-- Attached to Business Process (Domain = pdcad.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 's008' SET @s008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's008', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all related objects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's009' SET @s009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's009', 'WKFL_ATTACH_ALL_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach all Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's010' SET @s010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's010', 'WKFL_ATTACH_UNDEFINED_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Attach Draft Objects Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's011' SET @s011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's011', 'APPLY_BALLOONING_INFO_OF_NONDEFAULT_CFG_TO_DEFAULT_CFG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Apply Balloon values of non-default config to default config (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's012' SET @s012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's012', 'MAP_BALOONNING_INFORMATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Transfer Ballooning Information (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's013' SET @s013 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's013', 'PART_LIST_TABLE_FIELD', '3', 'S', 'pds020', '', @Itr_PropValue) -- Field in Part List table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 's014' SET @s014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's014', 'WARN_FOR_DUPLICATE_BALOON_IDS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for duplicate Balloon IDs (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's015' SET @s015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's015', 'WARN_FOR_INCOMPLETE_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incomplete Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's016' SET @s016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's016', 'WARN_FOR_INCORRECT_BALLOONING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for incorrect Ballooning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's017' SET @s017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's017', 'DISABLE_UNUSED_ROWS_DURING_EFI', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable unused rows during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's018' SET @s018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's018', 'ENABLE_DOWNLOAD_MULTIPLE_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Download Multiple Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's019' SET @s019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's019', 'ENABLE_SAVE_OLDER_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Save Older Revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's020' SET @s020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's020', 'WARN_REPLACE_PLM_UNDEFINED_FILE_DURING_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when replacing Draft File during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's021' SET @s021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's021', 'WARN_REVISION_SWITCH_IN_DOWNLOAD_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn when different File Version is selected during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's022' SET @s022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's022', 'ASSIGN_DEFAULT_MAPPING_TEMPLATES_ONLY_FOR_THE_NEW_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Assign Default Mapping Template Only for the new files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's023' SET @s023 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's023', 'DEFAULT_MAPPING_TEMPLATE_ASSEMBLY_FILES', '1', 'M', 'pdpdm.mprl', '', @Itr_PropValue) -- Default mapping template for Assembly files (Domain = pdpdm.mprl, Type = M)
			ELSE IF @Itr_TargetPropName = 's024' SET @s024 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's024', 'DEFAULT_MAPPING_TEMPLATE_DRAWING_FILES', '1', 'M', 'pdpdm.mprl', '', @Itr_PropValue) -- Default mapping template for Drawing files (Domain = pdpdm.mprl, Type = M)
			ELSE IF @Itr_TargetPropName = 's025' SET @s025 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's025', 'DEFAULT_MAPPING_TEMPLATE_PART_FILES', '1', 'M', 'pdpdm.mprl', '', @Itr_PropValue) -- Default mapping template for part files (Domain = pdpdm.mprl, Type = M)
			ELSE IF @Itr_TargetPropName = 's026' SET @s026 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's026', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's027' SET @s027 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's027', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow reload of already opened files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's028' SET @s028 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's028', 'APPLY_TO_PLM_CUSTOM_PROPERTY_MAPPING_RULES_TO_ALL_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Apply Custom Property Mapping Rules (to PLM) to All Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's029' SET @s029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's029', 'AUTOMATICALLY_PICK_LOCAL_DRAWINGS_DURING_SAVE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Automatically pick local drawings during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's030' SET @s030 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's030', 'CREATE_SEPERATE_BOM_LINES_FOR_COMPONENT_FILES_LINKED_TO_SAME_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create separate BOM lines for component files linked to same item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's031' SET @s031 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's031', 'DISABLE_ACTIONS_ON_VIEW_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable actions on view files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's032' SET @s032 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's032', 'DO_NOT_CREATE_ITEMS_FOR_SPECIFIC_CONFIGURATIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not create Items for specific configurations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's033' SET @s033 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's033', 'DOWNLOAD_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Download Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's034' SET @s034 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's034', 'GENERATE_ITEM_FOR_ALL_CONFIGURATIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Items for all configurations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's035' SET @s035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's035', 'ITEM_DRAWING_LINKS_RESOLVE_TO_DEFAULT_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Link Drawing to Default Item if variant has no item in PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's036' SET @s036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's036', 'LINK_DRAWING_TO_ALL_ITEMS_OF_CHILD_MODEL', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link Drawing to all Items of Child Model (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's037' SET @s037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's037', 'LINK_TO_EXISTING_ITEM_IN_CASE_OF_SET_CAD_INSTANCE_NAME_AS_ITEM_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link to Existing Item in Case of Item Id based on Cad Instance Name (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's038' SET @s038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's038', 'LINK_TO_EXISTING_ITEM_IN_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link to Existing Item in PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's039' SET @s039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's039', 'PLM_RETAIN_ITEM_DRAWING_LINKS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Retain Item-Drawing Links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's040' SET @s040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's040', 'PROCESS_IMPACTED_DOCUMENTS_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Process Impacted Documents during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's041' SET @s041 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's041', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '10', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 's042' SET @s042 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's042', 'RESOLVE_LIGHT_WEIGHT_COMPS_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Resolve light-weight components during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's043' SET @s043 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's043', 'SAVE_ADDITIONAL_DRAWING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save Additional Drawings (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's044' SET @s044 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's044', 'SAVE_EXTERNAL_REFERENCE_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save External References (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's045' SET @s045 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's045', 'SET_CAD_INSTANCE_NAME_AS_ITEM_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Cad Instance Name as Item-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's046' SET @s046 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's046', 'SET_ERP_DEFAULT_ITEM_DATA_AUTOMATICALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Update items with "ERP Item Default Data" automatically (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's047' SET @s047 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's047', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn user when the same item is linked to parent and child components (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's048' SET @s048 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's048', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show message on successful open (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's049' SET @s049 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's049', 'SKIP_MAPPING_FOR_RELEASED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Skip Mapping for Released files during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's050' SET @s050 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's050', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Meta Data comparison during Download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's051' SET @s051 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's051', 'SKIP_REFERENCED_FILEPATHS_CORRECTION_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip correction of referenced file paths during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's052' SET @s052 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's052', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Take Ownership during Edit File in Integration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's053' SET @s053 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's053', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 's054' SET @s054 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's054', 'USE_CUT_LIST_MAPPING', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Use Cut-List Mapping (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's055' SET @s055 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's055', 'WARN_FOR_MISSING_CHECKIN_SPECIFIC_MODIFIED_MAPPING_XML_FILE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Warn for missing CheckIn specific modified mapping XML file (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's056' SET @s056 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's056', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's057' SET @s057 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's057', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's058' SET @s058 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's058', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's059' SET @s059 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's059', 'ITEM_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's060' SET @s060 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's060', 'MUST_ASSIGN_AN_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Must assign an Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's061' SET @s061 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's061', 'SAVE_FILES_LOCALLY_AT_PROCESS_START', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Save files (if modified) locally at process start (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's062' SET @s062 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's062', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's063' SET @s063 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's063', 'SET_OBJECT_TO_MATCH_FILENAME', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set object to match filename (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's064' SET @s064 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's064', 'LTI_DLG_CREATE_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Item Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's065' SET @s065 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's065', 'LTI_DLG_LINK_ITEM_TO_DOC', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Link to Document Checkbox Default (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's066' SET @s066 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's066', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\SolidW', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 's067' SET @s067 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's067', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\Infor_PLM\PLM_Client\SolidW', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 's068' SET @s068 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's068', 'SKIP_MAPPING_DURING_DOWNLOAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip mapping during download (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's069' SET @s069 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's069', 'SKIP_MAPPING_VIA_MAPPING_TEMPLATES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Mapping (via Mapping Templates) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's070' SET @s070 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's070', 'ALLOW_OPERATIONS_ON_PREVIOUS_REVISIONS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow operations on previous revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's071' SET @s071 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's071', 'RENAME_FILE_IN_PLM_ON_FILE_SAVE_AS_OPERATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Rename file in PLM on File -> Save As operation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's072' SET @s072 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's072', 'DO_NOT_TRAVERSE_CHILDS_OF_NONMODIFIED_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Do not traverse child files under non-modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's073' SET @s073 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's073', 'SAVE_MODIFIED_FILES_ONLY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Save only modified files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's074' SET @s074 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's074', 'WARN_FOR_LOCAL_SAVE_IF_SELECTED_DOCUMENT_IS_DIRTY', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Warn if the selected document is changed but not locally saved (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's075' SET @s075 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's075', 'GENERATE_3D_PDFS_FOR_MODELS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate 3D PDFs for Model files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's076' SET @s076 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's076', 'GENERATE_NEUTRAL_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Neutral Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's077' SET @s077 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's077', 'NEUTRAL_FILES_GENERATION', '1', 'E', 'pdcad.nufg', '10', @Itr_PropValue) AS INT)-- Generate Neutral Files during (Domain = pdcad.nufg, Type = E)
			ELSE IF @Itr_TargetPropName = 's078' SET @s078 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's078', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show Neutral files during Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's079' SET @s079 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's079', 'NEUTRAL_FILES_ASSEMBLY_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's080' SET @s080 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's080', 'NEUTRAL_FILES_ASSEMBLY_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's081' SET @s081 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's081', 'NEUTRAL_FILES_ASSEMBLY_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's082' SET @s082 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's082', 'NEUTRAL_FILES_ASSEMBLY_PARASOLIDS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- ParaSolids (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's083' SET @s083 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's083', 'NEUTRAL_FILES_ASSEMBLY_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's084' SET @s084 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's084', 'NEUTRAL_FILES_ASSEMBLY_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's085' SET @s085 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's085', 'DO_NOT_ADD_DRW_EXTENSION_FOR_PDF_NEUTRAL_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do not Add DRW extension for PDF Neutral files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's086' SET @s086 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's086', 'NEUTRAL_FILES_DRAWING_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's087' SET @s087 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's087', 'NEUTRAL_FILES_DRAWING_DWG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DWG format (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's088' SET @s088 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's088', 'NEUTRAL_FILES_DRAWING_DXF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- DXF format (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's089' SET @s089 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's089', 'NEUTRAL_FILES_DRAWING_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's090' SET @s090 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's090', 'NEUTRAL_FILES_DRAWING_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's091' SET @s091 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's091', 'NEUTRAL_FILES_PARTS_ACIS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- ACIS (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's092' SET @s092 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's092', 'NEUTRAL_FILES_PARTS_BMP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- BMP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's093' SET @s093 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's093', 'NEUTRAL_FILES_PARTS_IGES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- IGES (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's094' SET @s094 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's094', 'NEUTRAL_FILES_PARTS_NONE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- None (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's095' SET @s095 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's095', 'NEUTRAL_FILES_PARTS_PARASOLIDS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- ParaSolid (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's096' SET @s096 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's096', 'NEUTRAL_FILES_PARTS_PDF', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- PDF (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's097' SET @s097 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's097', 'NEUTRAL_FILES_PARTS_STEP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- STEP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's098' SET @s098 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's098', 'NEUTRAL_FILES_PARTS_STEREO_LITHOGRAPHY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Stereo Lithography (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's099' SET @s099 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's099', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM', '1', 'E', 'pdcad.actn', '10', @Itr_PropValue) AS INT)-- Action to take if Item-ID exists in PLM database (Domain = pdcad.actn, Type = E)
			ELSE IF @Itr_TargetPropName = 's100' SET @s100 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's100', 'CUSTOM_PROPERTY_TO_USE_AS_ITEM_ID', '3', 'S', 'pds020', '', @Itr_PropValue) -- Custom property to use as Item-ID (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 's101' SET @s101 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's101', 'DUPLICATE_ITEM_IDS_ACTION', '1', 'E', 'pdcad.dupa', '10', @Itr_PropValue) AS INT)-- Action to take when same Item-ID is generated for multiple files (Domain = pdcad.dupa, Type = E)
			ELSE IF @Itr_TargetPropName = 's102' SET @s102 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's102', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME', '1', 'E', 'pdcad.matf', '10', @Itr_PropValue) AS INT)-- Set Item-ID based on (Domain = pdcad.matf, Type = E)
			ELSE IF @Itr_TargetPropName = 's103' SET @s103 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's103', 'ASSEMBLY_TEMPLATE', '4', 'S', 'pds255', '', @Itr_PropValue) -- Assembly template (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 's104' SET @s104 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's104', 'PART_TEMPLATE', '4', 'S', 'pds255', '', @Itr_PropValue) -- Part template (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 's105' SET @s105 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's105', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails during Save to PLM (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's106' SET @s106 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's106', 'GENERATE_THUMBNAILS_FOR_ASSEMBLIES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for assembly file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's107' SET @s107 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's107', 'GENERATE_THUMBNAILS_FOR_DRAWINGS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for drawing file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's108' SET @s108 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's108', 'GENERATE_THUMBNAILS_FOR_PARTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate thumbnails for part file types (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's109' SET @s109 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's109', 'REGISTER_THUMBNAILS_UNDER_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Register thumbnails under document objects only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's110' SET @s110 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's110', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE', '1', 'E', 'pdcad.tmbs', '10', @Itr_PropValue) AS INT)-- Generate thumbnails for CAD file structure (Domain = pdcad.tmbs, Type = E)
			ELSE IF @Itr_TargetPropName = 's111' SET @s111 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's111', 'THUMBNAIL_TYPE_FOR_GENERATION', '1', 'E', 'pdcad.tmbt', '20', @Itr_PropValue) AS INT)-- Format for thumbnails generation (Domain = pdcad.tmbt, Type = E)
			ELSE IF @Itr_TargetPropName = 's112' SET @s112 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's112', 'THUMBNAILS_SIZE', '2', 'S', 'pds255', '', @Itr_PropValue) -- Thumbnails Size (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 's113' SET @s113 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's113', 'USE_THUMBNAIL_OF_ACTIVE_CONFIGURATION_FOR_DEFAULT_CONFIGURATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Use thumbnail information of active configuration (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's114' SET @s114 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's114', 'ADD_COLUMN_IN_BOM_TABLE_TO_SHOW_PART_LIST_VALUES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Add column in BOM Table (if not exists) to show part list values (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's115' SET @s115 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's115', 'COLUMN_NAME_TO_UPDATE_PART_LIST_VALUES_IN_BOM_TABLE', '3', 'S', 'pds020', '', @Itr_PropValue) -- Column to update in BOM Table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 's116' SET @s116 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's116', 'PLM_TO_CAD_PART_LIST_TABLE_FIELD', '3', 'S', 'pds020', '', @Itr_PropValue) -- Field of part list table (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 's117' SET @s117 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's117', 'SHOW_PART_LIST_VALUES_AS_SEPERATE_COLUMN_IN_BOM_TABLE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show part list values as separate column under the BOM Table (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's118' SET @s118 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's118', 'SHOW_PART_LIST_VALUES_FOR_ALL_CONFIURATIONS_OF_BOM_TABLE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show part list values for all the configurations in BOM Table (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's119' SET @s119 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's119', 'TRANSFER_PART_LIST_DATA_FROM_PLM_TO_CAD', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Transfer part list values (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's120' SET @s120 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's120', 'UPDATE_ITEM_NO_COLUMN_WITH_PART_LIST_VALUES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Update Item No. Column of BOM Table (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's121' SET @s121 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's121', 'USE_VALUES_OF_CHILDS_DEFAULT_INSTANCE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Use values of Default configuration of child model (if required) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's122' SET @s122 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's122', 'USE_VALUES_OF_PARENTS_DEFAULT_INSTANCE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Use values of Default configuration of parent model (if required) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's123' SET @s123 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's123', 'GENERATE_LOG_FILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Generate Log files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 's124' SET @s124 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('SOLIDWORKS', 's124', 'VERIFY_DEPENDENCY_MISMATCH', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Verify Dependency Mismatch (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'TOOLKIT'
		BEGIN			
			IF @Itr_TargetPropName = 't001' SET @t001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't001', 'SYNCCADHEADER_FOR_ALL_MODEL_FILES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Synchronize All Files During "Save" (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't002' SET @t002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't002', 'SHOW_SYNC_MESSAGE_DURING_SAVE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Show synchronize message during "Save" (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't003' SET @t003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't003', 'IGNORE_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Ignore Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't004' SET @t004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't004', 'DISABLE_BOM_MODIFICATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable BOM Creation/Modification during "Save" (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't005' SET @t005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't005', 'SHOW_TOP_DOWN_LOAD_REPORT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show Top Down Load report (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't006' SET @t006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't006', 'ENABLE_SELECTIVE_CHECKOUT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Selective Checkout (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't007' SET @t007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't007', 'AUTOMATIC_CHECKOUT_WITH_ALL_LINKED_ITEMS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Check out all linked items during automatic checkout (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't008' SET @t008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't008', 'LOCAL_RELEASE_SYNC', '1', 'E', 'pdcad.resy', '20', @Itr_PropValue) AS INT)-- Local Release Synch (Domain = pdcad.resy, Type = E)
			ELSE IF @Itr_TargetPropName = 't009' SET @t009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't009', 'AUTOMATICALLY_SET_RESOLVE_FILENAME_TO_NEW', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Automatically set resolve filename to New (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't010' SET @t010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't010', 'LOCAL_SINGLE_FILE_SYNC', '1', 'E', 'pdcad.fisy', '10', @Itr_PropValue) AS INT)-- Single file sync (during save) (Domain = pdcad.fisy, Type = E)
			ELSE IF @Itr_TargetPropName = 't012' SET @t012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't012', 'DISABLE_ATTRIBUTE_GUI', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Disable Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't013' SET @t013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't013', 'SET_DOC_DESC_TO_UPPER_FILENAME', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Document Description to Upper Case (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't014' SET @t014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't014', 'VERIFY_LATEST_REVISION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Verify latest revision (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't015' SET @t015 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't015', 'DELETE_LINKS_WITH_PREVIOUS_REVISIONS', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Delete links with previous revisions (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't016' SET @t016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't016', 'SKIP_CIRCULAR_LINK_LOOP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Circular Link Loop (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't017' SET @t017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't017', 'ZIP_OPEN_RESPONSE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Compress open response (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't018' SET @t018 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't018', 'ZIP_OPEN_RESPONSE_OBJECTS_THRESHOLD', '3', 'S', 'pds020', '10000', @Itr_PropValue) -- Compress open response objects threshold (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't019' SET @t019 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't019', 'DOC', '3', 'S', 'pds020', 'msword', @Itr_PropValue) -- Document (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't020' SET @t020 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't020', 'DOT', '3', 'S', 'pds020', 'msword', @Itr_PropValue) -- DOT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't021' SET @t021 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't021', 'XLS', '3', 'S', 'pds020', 'msexcel', @Itr_PropValue) -- XLS (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't022' SET @t022 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't022', 'PPT', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- PPT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't023' SET @t023 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't023', 'PPS', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- PPS (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't024' SET @t024 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't024', 'POT', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- POT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't025' SET @t025 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't025', 'MSG', '3', 'S', 'pds020', 'msoutlook', @Itr_PropValue) -- MSG (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't026' SET @t026 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't026', 'MPP', '3', 'S', 'pds020', 'msproject', @Itr_PropValue) -- MPP (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't027' SET @t027 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't027', 'SLDPRT', '3', 'S', 'pds020', 'solidworks', @Itr_PropValue) -- SLDPRT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't028' SET @t028 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't028', 'SLDASM', '3', 'S', 'pds020', 'solidworks', @Itr_PropValue) -- SLDASM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't029' SET @t029 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't029', 'SLDDRW', '3', 'S', 'pds020', 'solidworks', @Itr_PropValue) -- SLDDRW (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't030' SET @t030 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't030', 'DWG', '3', 'S', 'pds020', 'autocad', @Itr_PropValue) -- DWG (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't031' SET @t031 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't031', 'IPT', '3', 'S', 'pds020', 'inventor', @Itr_PropValue) -- IPT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't032' SET @t032 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't032', 'IAM', '3', 'S', 'pds020', 'inventor', @Itr_PropValue) -- IAM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't033' SET @t033 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't033', 'IDW', '3', 'S', 'pds020', 'inventor', @Itr_PropValue) -- IDW (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't034' SET @t034 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't034', 'DOCX', '3', 'S', 'pds020', 'msword', @Itr_PropValue) -- DOCX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't035' SET @t035 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't035', 'DOTX', '3', 'S', 'pds020', 'msword', @Itr_PropValue) -- DOTX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't036' SET @t036 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't036', 'XLSX', '3', 'S', 'pds020', 'msexcel', @Itr_PropValue) -- XLSX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't037' SET @t037 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't037', 'PPTX', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- PPTX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't038' SET @t038 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't038', 'PPSX', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- PPSX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't039' SET @t039 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't039', 'POTX', '3', 'S', 'pds020', 'mspowerpoint', @Itr_PropValue) -- POTX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't040' SET @t040 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't040', 'MSGX', '3', 'S', 'pds020', 'msoutlook', @Itr_PropValue) -- MSGX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't041' SET @t041 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't041', 'MPPX', '3', 'S', 'pds020', 'msproject', @Itr_PropValue) -- MPPX (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't042' SET @t042 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't042', 'CATProduct', '3', 'S', 'pds020', 'catiav5', @Itr_PropValue) -- CATProduct (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't043' SET @t043 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't043', 'CATPart', '3', 'S', 'pds020', 'catiav5', @Itr_PropValue) -- CATPart (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't044' SET @t044 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't044', 'PAR', '3', 'S', 'pds020', 'solidedge', @Itr_PropValue) -- PAR (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't045' SET @t045 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't045', 'ASM', '3', 'S', 'pds020', 'solidedge', @Itr_PropValue) -- ASM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't046' SET @t046 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't046', 'DFT', '3', 'S', 'pds020', 'solidedge', @Itr_PropValue) -- DFT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't047' SET @t047 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't047', 'PSM', '3', 'S', 'pds020', 'solidedge', @Itr_PropValue) -- PSM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't048' SET @t048 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't048', 'PRT', '3', 'S', 'pds020', 'ug', @Itr_PropValue) -- PRT (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't049' SET @t049 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't049', 'XLSM', '3', 'S', 'pds020', 'msexcel', @Itr_PropValue) -- XLSM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't050' SET @t050 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't050', 'DOCM', '3', 'S', 'pds020', 'msword', @Itr_PropValue) -- DOCM (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't051' SET @t051 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't051', 'STP', '3', 'S', 'pds020', 'catiav5', @Itr_PropValue) -- STP (Domain = pds020, Type = S)
			ELSE IF @Itr_TargetPropName = 't052' SET @t052 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('TOOLKIT', 't052', 'AUTO_TRUNCATE_STRING_FIELD_VALUE_BASED_ON_PLM_FIELD_LENGTH', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Auto truncate field value based on PLM field length (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't053' SET @t053 = '1' -- Use Wildcard(*) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't054' SET @t054 = '1' -- Open for Editing (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't055' SET @t055 = '1' -- Show Thumbnails (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't056' SET @t056 = '1' -- Ignore Case (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 't057' SET @t057 = '10' -- Default Tab (Domain = pdadm.dosa, Type = E)
		END

		ELSE IF @InputApp = 'UG'
		BEGIN
			IF @Itr_TargetPropName = 'u001' SET @u001 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u001', 'EDIT_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- Edit Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'u002' SET @u002 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u002', 'VIEW_LOCATION', '2', 'S', 'pds255', 'C:\caxtmp\checkout', @Itr_PropValue) -- View Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'u003' SET @u003 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u003', 'CONCATENATE_ITEM-ID_FILE-ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Concatenate Item-ID/File-ID (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u004' SET @u004 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u004', 'DOCUMENT_MANUAL_ID', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Specify Manual ID for Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u005' SET @u005 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u005', 'DISABLE_SET_MAIN_ITEM_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Disable Showing Dialog for setting Main Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u006' SET @u006 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u006', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '20', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'u007' SET @u007 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u007', 'QUERY_SEARCH_DEFAULT', '1', 'E', 'pdcad.qdsr', '20', @Itr_PropValue) AS INT)-- Query Search Default (Domain = pdcad.qdsr, Type = E)
			ELSE IF @Itr_TargetPropName = 'u008' SET @u008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u008', 'OPEN_WITH_STRUCTURE_INFO', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Open With Structure Information (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u009' SET @u009 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u009', 'ENABLE_SELECTIVE_CHECKOUT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable Selective Checkout (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u010' SET @u010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u010', 'ALLOW_LINK_TO_RELEASED_ITEMS', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Allow Link to Released Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u011' SET @u011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u011', 'LINK_DRAWING_TO_ALL_ITEMS_OF_CHILD_MODEL', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Link Drawing to all Items of Child Model (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u012' SET @u012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u012', 'SET_ATTRIBUTES_MANUALLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Set Object Attribute During Save (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'u013' SET @u013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('UG', 'u013', 'CREATE_DOCUMENTS_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Create Documents Only (Domain = pdyesno, Type = E)
		END

		ELSE IF @InputApp = 'WEBPLM'
		BEGIN			
			IF @Itr_TargetPropName = 'w001' SET @w001 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w001', 'SELECTIVE_CHECK_OUT_LEVELS', '3', 'I', 'pdintr', '0', @Itr_PropValue) AS INT)-- Selective Check-Out Levels (Domain = pdintr, Type = I)
			ELSE IF @Itr_TargetPropName = 'w002' SET @w002 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w002', 'DEFAULT_ATTACH_TO_BP', '1', 'E', 'pdadm.atbp', '30', @Itr_PropValue) AS INT)-- Default Attach to Business Process (Domain = pdadm.atbp, Type = E)
			ELSE IF @Itr_TargetPropName = 'w003' SET @w003 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w003', 'DEFAULT_PROJECT', '6', 'S', 'pdproj', '', @Itr_PropValue) -- Default Project (Domain = pdproj, Type = S)
			
			ELSE IF @Itr_TargetPropName = 'w007' SET @w007 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w007', 'PLM_EMAIL_ADDRESS_FROM', '3', 'S', 'pds255', '', @Itr_PropValue) -- PLM Email Address From (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w008' SET @w008 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w008', 'SKIP_METADATA_IN_EXPORT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Skip Meta Data in Export (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w009' SET @w009 = '2' -- Allow Check-In and Check-Out Steps with No Valid Objects Attached (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w010' SET @w010 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w010', 'WF_RESTRICT_LOCKING_BP_ONLY_VCTL', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Workflow handle only Locked Object (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w011' SET @w011 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w011', 'COPY_CLASSIFICATION_DURING_DUPLICATE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Copy classification during duplicate object (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w012' SET @w012 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w012', 'ALLOW_CHECKOUT_LATEST_CREATED_ONLY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow Check-Out Latest Created Only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w013' SET @w013 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w013', 'ALLOW_LINK_RELEASED_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow linking to released Item (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w014' SET @w014 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w014', 'ALLOW_LINK_RELEASED_DOC', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow linking to released Document (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w016' SET @w016 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w016', 'FILE_SECURITY_BASED_ON_SYNCHRONIZATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Enable file security based on synchronization rules (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w017' SET @w017 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w017', 'REMOVE_ORIG_PROJECT_AUTH', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Change Project Owner removes access to original Project (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w018' SET @w018 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w018', 'SHOW_DRAG_DROP_CONFIRMATION_DIALOG', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Show Drag and Drop Confirmation Dialog (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w019' SET @w019 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w019', 'ALLOW_LOCKED_OBJS_IN_NEW_BP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow locked objects in new BP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w020' SET @w020 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w020', 'FORCE_REVISION_MASK_COMPLIANCE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Manual Revision must comply with Mask (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w021' SET @w021 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w021', 'ADD_LEADING_ZEROS_FIND_NO', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Add leading Zeroes in Find No. (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w022' SET @w022 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w022', 'UNLINK_NON_EFFECTIVE_LINKED_ITEM', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Check-Out action (for Documents) Remove links to non-effective Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w023' SET @w023 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w023', 'FILE_MULTI_SITE_SYNCHRONIZATION_ON_DEMAND', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- On-demand file multi-vault synchronization (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w024' SET @w024 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w024', 'CONSIDER_DEFAULT_PROJECT_DURING_DUPLICATE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Consider User Default Project during Duplicate of Object (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w025' SET @w025 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w025', 'REF_DESIGNATORS_RANGE_INDICATOR', '2', 'S', 'pdadm.rngi', '', @Itr_PropValue) -- Reference Designators range indicator (Domain = pdadm.rngi, Type = S)
			ELSE IF @Itr_TargetPropName = 'w026' SET @w026 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w026', 'REF_DESIGNATORS_IN_USE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Use Reference Designators (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w027' SET @w027 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w027', 'IGNORE_NF_DURING_EDIT_OR_VIEW_OF_CADFILES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Ignore Neutral Files during Edit/View of Files (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w028' SET @w028 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w028', 'GUI_FILE', '3', 'S', 'pds255', '', @Itr_PropValue) -- GUI File (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w029' SET @w029 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w029', 'UNIQUE_FILE_NAMES', '1', 'E', 'pdadm.ufnm', '30', @Itr_PropValue) AS INT)-- File Name Uniqueness (Domain = pdadm.ufnm, Type = E)
			ELSE IF @Itr_TargetPropName = 'w030' SET @w030 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w030', 'THUMBNAILS_SIZE', '2', 'S', 'pds032', '', @Itr_PropValue) -- Thumbnails Size (Domain = pds032, Type = S)
			ELSE IF @Itr_TargetPropName = 'w031' SET @w031 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w031', 'SYNCHRONIZE_FILES_VIA_MAIN_SITE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Synchronize files via Main Vault only (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w032' SET @w032 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w032', 'WEBPLM_FILE_DOWNLOAD_LOCATION', '2', 'S', 'pds255', '', @Itr_PropValue) -- Download File Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w033' SET @w033 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w033', 'FILE_CHECKINOUT_SYNC_ALL_UPTODATE_SITES', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Check-In/Out sync all up to date sites (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w034' SET @w034 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w034', 'DEFAULT_FILE_VIEWER_ZOOM_VALUE', '3', 'I', 'pdintr', '0', @Itr_PropValue) AS INT)-- Default File Viewer Zoom Value (Domain = pdintr, Type = I)
			ELSE IF @Itr_TargetPropName = 'w035' SET @w035 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w035', 'REFRESH_TASK_LIST_AFTER_APPROVAL', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Refresh Task List after approval (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w036' SET @w036 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w036', 'ALLOW_LINK_ACROSS_PROJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow cross-project authorization for logical links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w037' SET @w037 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w037', 'ALLOW_PS_LINK_ACROSS_PROJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Allow cross-project authorization for hierarchical links (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w038' SET @w038 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w038', 'ALLOW_CROSS_PROJECT_OBJECTS', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Cross Project Authorization for Check-In/Check-Out Operations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w039' SET @w039 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w039', 'ASK_TO_SAVE_QUERY', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Reminder to Save Query (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w040' SET @w040 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w040', 'DEFAULT_REVISION_OPTION', '1', 'E', 'pdadm.revf', '10', @Itr_PropValue) AS INT)-- Default Revision Option (Domain = pdadm.revf, Type = E)
			ELSE IF @Itr_TargetPropName = 'w041' SET @w041 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w041', 'ERP_VERSION', '1', 'E', 'pderp.etyp', '10', @Itr_PropValue) AS INT)-- ERP Version (Domain = pderp.etyp, Type = E)
			ELSE IF @Itr_TargetPropName = 'w042' SET @w042 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w042', 'ERP_COMPANY', '1', 'S', 'pdcmpy', '', @Itr_PropValue) -- ERP Company (Domain = pdcmpy, Type = S)
			ELSE IF @Itr_TargetPropName = 'w043' SET @w043 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w043', 'ERP_CONNECTION_USING_ION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- ERP Connection using ION (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w044' SET @w044 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w044', 'FORCE_ELEMENT_FOR_WBS_WP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Force Sending WBS/WP to Element (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w045' SET @w045 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w045', 'TREE_LEVELS', '2', 'I', 'pdintr', '0', @Itr_PropValue) AS INT)-- Tree Levels (Domain = pdintr, Type = I)
			ELSE IF @Itr_TargetPropName = 'w047' SET @w047 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w047', 'SEND_BOM_DESIGNED_FOR_PURCHASE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Send BOM Designed for Purchase (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w048' SET @w048 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w048', 'CHK_SEND_TO_PRODUCTION', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Send Items to ERP (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w050' SET @w050 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w050', 'SEND_BOM_DESIGNED_FOR_PURCHASE_TO_WBS_WP', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Send BOM Designed for Purchase (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w051' SET @w051 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w051', 'NUMBER_OF_LEVELS_IN_STRUCTURE', '3', 'I', 'pdintr', '0', @Itr_PropValue) AS INT)-- Number of Levels in Structure Pane (Domain = pdintr, Type = I)
			ELSE IF @Itr_TargetPropName = 'w052' SET @w052 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w052', 'USE_WF_TEMPLATE_ASSOCIATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Restrict use of Dispatch according to Workflow Template Association (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w053' SET @w053 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w053', 'STRICT_WORKFLOW_ASSOCIATION_RULES', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Strict Workflow Association Rules (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w054' SET @w054 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w054', 'REPEAT_TASK_REMINDER', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Repeat Email Reminder for Task until it is done (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w055' SET @w055 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w055', 'REPEAT_TASK_REMINDER_UNIT', '1', 'E', 'pdadm.timu', '20', @Itr_PropValue) AS INT)-- Repeat Email Reminder for Task - Time Unit (Domain = pdadm.timu, Type = E)
			ELSE IF @Itr_TargetPropName = 'w056' SET @w056 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w056', 'REPEAT_TASK_REMINDER_FREQ', '3', 'I', 'pdintr', '0', @Itr_PropValue) AS INT)-- Repeat Email Reminder for Task - Frequency (Domain = pdintr, Type = I)
			ELSE IF @Itr_TargetPropName = 'w057' SET @w057 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w057', 'ORIGINATOR_GET_EMAIL_BP_COMPLETE', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Notify Originator when Business Process is complete (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w058' SET @w058 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w058', 'ORIGINATOR_GET_EMAIL_BP_SUSPENDED', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Notify Originator when Business Process is suspended (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w059' SET @w059 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w059', 'ORIGINATOR_GET_EMAIL_BP_CANCELLED', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Notify Originator when Business Process is cancelled (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w060' SET @w060 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w060', 'ORIGINATOR_GET_EMAIL_BP_RESUMED', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Notify Originator when Business Process is resumed (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w061' SET @w061 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w061', 'ORIGINATOR_GET_EMAIL_BP_REJECTED', '0', 'E', 'pdyesno', '1', @Itr_PropValue) AS INT)-- Notify Originator when Business Process is rejected (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w063' SET @w063 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w063', 'TRANSFER_FILES_USING_LOCAL_TOOLKIT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- File Transfer with Locally Installed Toolkit (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w064' SET @w064 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w064', 'WEBPLM_EDIT_LOCATION', '2', 'S', 'pds255', '', @Itr_PropValue) -- Edit File location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w065' SET @w065 = dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w065', 'WEBPLM_VIEW_LOCATION', '2', 'S', 'pds255', '', @Itr_PropValue) -- View File Location (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w066' SET @w066 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w066', 'DO_NOT_CREATE_EXTRA_FOLDER_FOR_VIEW_FILE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Do Not Create extra Folder for View File (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w067' SET @w067 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w067', 'MAIL_APPROVE_REJECT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Receive email when publication is approved or rejected (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w068' SET @w068 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w068', 'MAIL_NEW_PUBLICATION', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Receive email when new publication is assigned (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w069' SET @w069 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w069', 'MAIL_NEW_NOTE', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Receive email when new note is added (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w070' SET @w070 = CAST(dbo.MIG_GET_PREFERENCE_VALUE_Fn('WEBPLM', 'w070', 'MAIL_NEW_PUBL_IN_PROJECT', '0', 'E', 'pdyesno', '2', @Itr_PropValue) AS INT)-- Receive email when new publication is posted in the project (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w071' SET @w071 = '10' -- Mode (Domain = pdadm.mode, Type = E)
			ELSE IF @Itr_TargetPropName = 'w072' SET @w072 = '10' -- Fix (Domain = pdadm.cfix, Type = E)
			ELSE IF @Itr_TargetPropName = 'w073' SET @w073 = '' -- Shared Project (Domain = pdproj, Type = S)
			ELSE IF @Itr_TargetPropName = 'w074' SET @w074 = '2' -- Enable read write lock for Check-In/Check-Out (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w075' SET @w075 = '1' -- Require Additional Confirmation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w076' SET @w076 = '1' -- Force addition of Reason (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w077' SET @w077 = '1' -- Maintain Customer Part Number (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w078' SET @w078 = '1' -- Maintain Supplier Part Number (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w079' SET @w079 = '1' -- All Projects Mode (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w080' SET @w080 = '1' -- Authorize Items to All Projects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w081' SET @w081 = '1' -- Authorize Documents to All Projects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w082' SET @w082 = '1' -- Authorize Folders to All Projects (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w083' SET @w083 = '1' -- Ignore Missing numbers during Mask generation (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w084' SET @w084 = '' -- Email address to be used by PLM (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w085' SET @w085 = '2' -- Author must Classify Items (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w086' SET @w086 = '2' -- Author must Classify Documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w087' SET @w087 = '2' -- Author must Classify Materials (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w088' SET @w088 = '' -- PLM Export Path (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w089' SET @w089 = '' -- PLM Import Path (Domain = pds255, Type = S)
			ELSE IF @Itr_TargetPropName = 'w090' SET @w090 = '10' -- Action on multiple revisions selected (Domain = pdvlt.mlselect, Type = E)
			ELSE IF @Itr_TargetPropName = 'w091' SET @w091 = '1' -- Log Staging Times (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w092' SET @w092 = '20' -- Select option to recreate links during Undo Check-Out (Domain = pdvlt.reclinks, Type = E)
			ELSE IF @Itr_TargetPropName = 'w093' SET @w093 = '2' -- Disable automatic Check-In of child documents (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w094' SET @w094 = '1' -- Delete Ineffective Links (On Check-In) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w095' SET @w095 = '2' -- Display report on Revision Control Operations (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w096' SET @w096 = '2' -- Re-create links using look-up table (On Undo Check-In) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w097' SET @w097 = '1' -- Classification In Use (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w098' SET @w098 = '1' -- Check Out Major (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w099' SET @w099 = (SELECT CASE WHEN VALUE = 'Yes' Then 1 -- YES
																		  ELSE 2 -- NO
																	 END as VALUE
															  FROM MIG_SETTINGS WHERE NAME = 'MANAGE_FILES_USING_BASE_VERSIONING') -- '1' -- Manage Files using Base Versioning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w100' SET @w100 = '' -- Items (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w101' SET @w101 = '' -- BOM (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w102' SET @w102 = '' -- Documents (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w103' SET @w103 = '' -- Folders (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w104' SET @w104 = '' -- Files (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w105' SET @w105 = '' -- Business Process (Domain = pdadm.tmpl, Type = S)
			ELSE IF @Itr_TargetPropName = 'w106' SET @w106 = '1' -- Skip DAL authorization checks (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w107' SET @w107 = '1' -- Skip Circular Loop detection check (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w108' SET @w108 = (SELECT CASE WHEN VALUE = 'Yes' Then 1 -- YES
																		  ELSE 2 -- NO
																	 END as VALUE
															  FROM MIG_SETTINGS WHERE NAME = 'MANAGE_THUMBNAILS_USING_BASE_VERSIONING') --'1' -- Manage thumbnails using Base Versioning (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w109' SET @w109 = '2' -- Display Boolean attributes as list-box in Classification Dialog (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w112' SET @w112 = '1' -- Show Navigation Session (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w113' SET @w113 = '1' -- Traverse using table (instead of JSON) (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w114' SET @w114 = '1' -- During Undo Check-Out, delegate files deletion to background job (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w115' SET @w115 = '40' -- Derived version action on re-upload of base version (Domain = pdadm.revi, Type = E)
			ELSE IF @Itr_TargetPropName = 'w117' SET @w117 = '2' -- Mark documents for text search indexing on Check-In (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w118' SET @w118 = '2' -- Generate Mask using BMS (Domain = pdyesno, Type = E)
			ELSE IF @Itr_TargetPropName = 'w121' SET @w121 = '40' -- Action on derived version on thumbnails re-upload of base versions (Domain = pdadm.img.act, Type = E)
			ELSE IF @Itr_TargetPropName = 'w122' SET @w122 = '' -- Impact Analysis Configuration (Domain = pds050, Type = S)
			ELSE IF @Itr_TargetPropName = 'w123' SET @w123 = '' -- ERP Site (Domain = pderp.site, Type = S)
		END
	END

	IF @InputApp = 'AUTOCAD'
	BEGIN
		UPDATE MIG_AUTOCAD_PREFERENCES
		SET
			a001 = @a001, 
			a002 = @a002, 
			a003 = @a003, 
			a004 = @a004, 
			a005 = @a005, 
			a006 = @a006, 
			a007 = @a007, 
			a008 = @a008, 
			a009 = @a009, 
			a010 = @a010, 
			a011 = @a011, 
			a012 = @a012, 
			a013 = @a013, 
			a014 = @a014, 
			a015 = @a015, 
			a016 = @a016, 
			a017 = @a017, 
			a018 = @a018, 
			a019 = @a019, 
			a020 = @a020, 
			a021 = @a021, 
			a022 = @a022, 
			a023 = @a023, 
			a024 = @a024, 
			a025 = @a025, 
			a026 = @a026, 
			a027 = @a027, 
			a028 = @a028, 
			a029 = @a029, 
			a030 = @a030, 
			a031 = @a031, 
			a032 = @a032, 
			a033 = @a033, 
			a034 = @a034, 
			a035 = @a035, 
			a036 = @a036, 
			a037 = @a037, 
			a038 = @a038, 
			a039 = @a039, 
			a040 = @a040, 
			a041 = @a041, 
			a042 = @a042, 
			a043 = @a043, 
			a044 = @a044, 
			a045 = @a045, 
			a046 = @a046
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'CATIAV5'
	BEGIN
		UPDATE MIG_CATIAV_PREFERENCES
		SET
			c001 = @c001, 
			c002 = @c002, 
			c003 = @c003, 
			c004 = @c004, 
			c005 = @c005, 
			c006 = @c006, 
			c007 = @c007, 
			c008 = @c008, 
			c009 = @c009, 
			c010 = @c010, 
			c011 = @c011, 
			c012 = @c012, 
			c013 = @c013
		WHERE [user_id] = @TargetUser
	END

	IF @InputApp = 'DRAFTSIGHT'
	BEGIN
		UPDATE MIG_DRAFTSIGHT_PREFERENCES
		SET
			d001 = @d001, 
			d002 = @d002, 
			d003 = @d003, 
			d004 = @d004, 
			d005 = @d005, 
			d006 = @d006, 
			d007 = @d007, 
			d008 = @d008, 
			d009 = @d009, 
			d010 = @d010, 
			d011 = @d011, 
			d012 = @d012, 
			d013 = @d013, 
			d014 = @d014, 
			d015 = @d015, 
			d016 = @d016, 
			d017 = @d017, 
			d018 = @d018, 
			d019 = @d019, 
			d020 = @d020, 
			d021 = @d021, 
			d022 = @d022, 
			d023 = @d023, 
			d024 = @d024, 
			d025 = @d025, 
			d026 = @d026, 
			d027 = @d027, 
			d028 = @d028, 
			d029 = @d029, 
			d030 = @d030, 
			d031 = @d031, 
			d032 = @d032, 
			d033 = @d033, 
			d034 = @d034, 
			d035 = @d035, 
			d036 = @d036, 
			d037 = @d037, 
			d038 = @d038, 
			d039 = @d039, 
			d040 = @d040, 
			d041 = @d041, 
			d042 = @d042
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'INVENTOR'
	BEGIN
		UPDATE MIG_INVENTOR_PREFERENCES
		SET
			i001 = @i001, 
			i002 = @i002, 
			i003 = @i003, 
			i004 = @i004, 
			i005 = @i005, 
			i006 = @i006, 
			i007 = @i007, 
			i008 = @i008, 
			i009 = @i009, 
			i010 = @i010, 
			i011 = @i011, 
			i012 = @i012, 
			i013 = @i013, 
			i014 = @i014, 
			i015 = @i015, 
			i016 = @i016, 
			i017 = @i017, 
			i018 = @i018, 
			i019 = @i019, 
			i020 = @i020, 
			i021 = @i021, 
			i022 = @i022, 
			i023 = @i023, 
			i024 = @i024, 
			i025 = @i025, 
			i026 = @i026, 
			i027 = @i027, 
			i028 = @i028, 
			i029 = @i029, 
			i030 = @i030, 
			i031 = @i031, 
			i032 = @i032, 
			i033 = @i033, 
			i034 = @i034, 
			i035 = @i035, 
			i036 = @i036, 
			i037 = @i037, 
			i038 = @i038, 
			i039 = @i039, 
			i040 = @i040, 
			i041 = @i041, 
			i042 = @i042, 
			i043 = @i043, 
			i044 = @i044, 
			i045 = @i045, 
			i046 = @i046, 
			i047 = @i047, 
			i048 = @i048, 
			i049 = @i049, 
			i050 = @i050, 
			i051 = @i051, 
			i052 = @i052, 
			i053 = @i053, 
			i054 = @i054, 
			i055 = @i055, 
			i056 = @i056, 
			i057 = @i057, 
			i058 = @i058, 
			i059 = @i059, 
			i060 = @i060, 
			i061 = @i061, 
			i062 = @i062, 
			i063 = @i063, 
			i064 = @i064, 
			i065 = @i065, 
			i066 = @i066, 
			i067 = @i067, 
			i068 = @i068, 
			i069 = @i069, 
			i070 = @i070, 
			i071 = @i071, 
			i072 = @i072, 
			i073 = @i073, 
			i074 = @i074, 
			i075 = @i075, 
			i076 = @i076, 
			i077 = @i077, 
			i078 = @i078, 
			i079 = @i079, 
			i080 = @i080, 
			i081 = @i081, 
			i082 = @i082, 
			i083 = @i083, 
			i084 = @i084, 
			i085 = @i085, 
			i086 = @i086, 
			i087 = @i087, 
			i088 = @i088, 
			i089 = @i089, 
			i090 = @i090, 
			i091 = @i091, 
			i092 = @i092, 
			i093 = @i093, 
			i094 = @i094, 
			i095 = @i095, 
			i096 = @i096, 
			i097 = @i097, 
			i098 = @i098, 
			i099 = @i099, 
			i100 = @i100, 
			i101 = @i101, 
			i102 = @i102, 
			i103 = @i103, 
			i104 = @i104, 
			i105 = @i105, 
			i106 = @i106, 
			i107 = @i107, 
			i108 = @i108, 
			i109 = @i109, 
			i110 = @i110, 
			i111 = @i111, 
			i112 = @i112, 
			i113 = @i113, 
			i114 = @i114, 
			i115 = @i115, 
			i116 = @i116, 
			i117 = @i117, 
			i118 = @i118, 
			i119 = @i119, 
			i120 = @i120, 
			i121 = @i121, 
			i122 = @i122, 
			i123 = @i123, 
			i124 = @i124, 
			i125 = @i125, 
			i126 = @i126, 
			i127 = @i127, 
			i128 = @i128, 
			i129 = @i129, 
			i130 = @i130, 
			i131 = @i131, 
			i132 = @i132, 
			i133 = @i133, 
			i134 = @i134, 
			i135 = @i135, 
			i136 = @i136, 
			i137 = @i137, 
			i138 = @i138, 
			i139 = @i139
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'ME10'
	BEGIN
		UPDATE MIG_ME_PREFERENCES
		SET
			m001 = @m001, 
			m002 = @m002, 
			m003 = @m003, 
			m004 = @m004, 
			m005 = @m005, 
			m006 = @m006, 
			m007 = @m007, 
			m008 = @m008
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'MSOFFICE'
	BEGIN
		UPDATE MIG_MSOFFICE_PREFERENCES
		SET
			o001 = @o001, 
			o002 = @o002, 
			o003 = @o003, 
			o004 = @o004, 
			o005 = @o005, 
			o006 = @o006, 
			o007 = @o007, 
			o008 = @o008, 
			o009 = @o009, 
			o010 = @o010, 
			o011 = @o011, 
			o012 = @o012, 
			o013 = @o013, 
			o014 = @o014, 
			o015 = @o015, 
			o016 = @o016, 
			o017 = @o017, 
			o018 = @o018, 
			o019 = @o019, 
			o020 = @o020, 
			o021 = @o021, 
			o022 = @o022, 
			o023 = @o023, 
			o024 = @o024, 
			o026 = @o026, 
			o027 = @o027, 
			o028 = @o028, 
			o029 = @o029, 
			o030 = @o030, 
			o031 = @o031, 
			o032 = @o032, 
			o033 = @o033, 
			o034 = @o034, 
			o035 = @o035
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'PROE'
	BEGIN
		UPDATE MIG_CREO_PREFERENCES
		SET
			p001 = @p001, 
			p002 = @p002, 
			p003 = @p003, 
			p004 = @p004, 
			p005 = @p005, 
			p006 = @p006, 
			p007 = @p007, 
			p008 = @p008, 
			p009 = @p009, 
			p010 = @p010, 
			p011 = @p011, 
			p012 = @p012, 
			p013 = @p013, 
			p014 = @p014, 
			p015 = @p015, 
			p016 = @p016, 
			p017 = @p017, 
			p018 = @p018, 
			p019 = @p019, 
			p020 = @p020, 
			p021 = @p021, 
			p022 = @p022, 
			p023 = @p023, 
			p024 = @p024, 
			p025 = @p025, 
			p026 = @p026, 
			p027 = @p027, 
			p028 = @p028, 
			p029 = @p029, 
			p030 = @p030, 
			p031 = @p031, 
			p032 = @p032, 
			p033 = @p033, 
			p034 = @p034, 
			p035 = @p035, 
			p036 = @p036, 
			p037 = @p037, 
			p038 = @p038, 
			p039 = @p039, 
			p040 = @p040, 
			p041 = @p041, 
			p042 = @p042, 
			p043 = @p043, 
			p044 = @p044, 
			p045 = @p045, 
			p046 = @p046, 
			p047 = @p047, 
			p048 = @p048, 
			p049 = @p049, 
			p050 = @p050, 
			p051 = @p051, 
			p052 = @p052, 
			p053 = @p053, 
			p054 = @p054, 
			p055 = @p055, 
			p056 = @p056, 
			p057 = @p057, 
			p058 = @p058, 
			p059 = @p059, 
			p060 = @p060, 
			p061 = @p061, 
			p062 = @p062, 
			p063 = @p063, 
			p064 = @p064, 
			p065 = @p065, 
			p066 = @p066, 
			p067 = @p067, 
			p068 = @p068, 
			p069 = @p069, 
			p070 = @p070, 
			p071 = @p071, 
			p072 = @p072, 
			p073 = @p073, 
			p074 = @p074, 
			p075 = @p075, 
			p076 = @p076, 
			p077 = @p077, 
			p078 = @p078, 
			p079 = @p079, 
			p080 = @p080, 
			p081 = @p081, 
			p082 = @p082, 
			p083 = @p083, 
			p084 = @p084, 
			p085 = @p085, 
			p086 = @p086, 
			p087 = @p087, 
			p088 = @p088, 
			p089 = @p089, 
			p090 = @p090, 
			p091 = @p091, 
			p092 = @p092, 
			p093 = @p093, 
			p094 = @p094, 
			p095 = @p095, 
			p096 = @p096, 
			p097 = @p097, 
			p098 = @p098, 
			p099 = @p099, 
			p100 = @p100, 
			p101 = @p101, 
			p102 = @p102, 
			p103 = @p103, 
			p104 = @p104, 
			p105 = @p105, 
			p106 = @p106, 
			p107 = @p107, 
			p108 = @p108, 
			p109 = @p109, 
			p110 = @p110, 
			p111 = @p111, 
			p112 = @p112, 
			p113 = @p113, 
			p114 = @p114, 
			p115 = @p115, 
			p116 = @p116, 
			p117 = @p117, 
			p118 = @p118
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'SOLIDEDGE'
	BEGIN
		UPDATE MIG_SOLIDEDGE_PREFERENCES
		SET
			e001 = @e001, 
			e002 = @e002, 
			e003 = @e003, 
			e004 = @e004, 
			e005 = @e005, 
			e006 = @e006, 
			e007 = @e007, 
			e008 = @e008, 
			e009 = @e009, 
			e010 = @e010, 
			e011 = @e011, 
			e012 = @e012, 
			e013 = @e013, 
			e014 = @e014, 
			e015 = @e015, 
			e016 = @e016, 
			e017 = @e017, 
			e018 = @e018, 
			e019 = @e019, 
			e020 = @e020, 
			e021 = @e021, 
			e022 = @e022, 
			e023 = @e023
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'SOLIDWORKS'
	BEGIN
		UPDATE MIG_SOLIDWORKS_PREFERENCES
		SET
			s001 = @s001, 
			s002 = @s002, 
			s003 = @s003, 
			s004 = @s004, 
			s005 = @s005, 
			s006 = @s006, 
			s007 = @s007, 
			s008 = @s008, 
			s009 = @s009, 
			s010 = @s010, 
			s011 = @s011, 
			s012 = @s012, 
			s013 = @s013, 
			s014 = @s014, 
			s015 = @s015, 
			s016 = @s016, 
			s017 = @s017, 
			s018 = @s018, 
			s019 = @s019, 
			s020 = @s020, 
			s021 = @s021, 
			s022 = @s022, 
			s023 = @s023, 
			s024 = @s024, 
			s025 = @s025, 
			s026 = @s026, 
			s027 = @s027, 
			s028 = @s028, 
			s029 = @s029, 
			s030 = @s030, 
			s031 = @s031, 
			s032 = @s032, 
			s033 = @s033, 
			s034 = @s034, 
			s035 = @s035, 
			s036 = @s036, 
			s037 = @s037, 
			s038 = @s038, 
			s039 = @s039, 
			s040 = @s040, 
			s041 = @s041, 
			s042 = @s042, 
			s043 = @s043, 
			s044 = @s044, 
			s045 = @s045, 
			s046 = @s046, 
			s047 = @s047, 
			s048 = @s048, 
			s049 = @s049, 
			s050 = @s050, 
			s051 = @s051, 
			s052 = @s052, 
			s053 = @s053, 
			s054 = @s054, 
			s055 = @s055, 
			s056 = @s056, 
			s057 = @s057, 
			s058 = @s058, 
			s059 = @s059, 
			s060 = @s060, 
			s061 = @s061, 
			s062 = @s062, 
			s063 = @s063, 
			s064 = @s064, 
			s065 = @s065, 
			s066 = @s066, 
			s067 = @s067, 
			s068 = @s068, 
			s069 = @s069, 
			s070 = @s070, 
			s071 = @s071, 
			s072 = @s072, 
			s073 = @s073, 
			s074 = @s074, 
			s075 = @s075, 
			s076 = @s076, 
			s077 = @s077, 
			s078 = @s078, 
			s079 = @s079, 
			s080 = @s080, 
			s081 = @s081, 
			s082 = @s082, 
			s083 = @s083, 
			s084 = @s084, 
			s085 = @s085, 
			s086 = @s086, 
			s087 = @s087, 
			s088 = @s088, 
			s089 = @s089, 
			s090 = @s090, 
			s091 = @s091, 
			s092 = @s092, 
			s093 = @s093, 
			s094 = @s094, 
			s095 = @s095, 
			s096 = @s096, 
			s097 = @s097, 
			s098 = @s098, 
			s099 = @s099, 
			s100 = @s100, 
			s101 = @s101, 
			s102 = @s102, 
			s103 = @s103, 
			s104 = @s104, 
			s105 = @s105, 
			s106 = @s106, 
			s107 = @s107, 
			s108 = @s108, 
			s109 = @s109, 
			s110 = @s110, 
			s111 = @s111, 
			s112 = @s112, 
			s113 = @s113, 
			s114 = @s114, 
			s115 = @s115, 
			s116 = @s116, 
			s117 = @s117, 
			s118 = @s118, 
			s119 = @s119, 
			s120 = @s120, 
			s121 = @s121, 
			s122 = @s122, 
			s123 = @s123, 
			s124 = @s124
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'TOOLKIT'
	BEGIN
		UPDATE MIG_TOOLKIT_PREFERENCES
		SET
			t001 = @t001, 
			t002 = @t002, 
			t003 = @t003, 
			t004 = @t004, 
			t005 = @t005, 
			t006 = @t006, 
			t007 = @t007, 
			t008 = @t008, 
			t009 = @t009, 
			t010 = @t010, 
			t012 = @t012, 
			t013 = @t013, 
			t014 = @t014, 
			t015 = @t015, 
			t016 = @t016, 
			t017 = @t017, 
			t018 = @t018, 
			t019 = @t019, 
			t020 = @t020, 
			t021 = @t021, 
			t022 = @t022, 
			t023 = @t023, 
			t024 = @t024, 
			t025 = @t025, 
			t026 = @t026, 
			t027 = @t027, 
			t028 = @t028, 
			t029 = @t029, 
			t030 = @t030, 
			t031 = @t031, 
			t032 = @t032, 
			t033 = @t033, 
			t034 = @t034, 
			t035 = @t035, 
			t036 = @t036, 
			t037 = @t037, 
			t038 = @t038, 
			t039 = @t039, 
			t040 = @t040, 
			t041 = @t041, 
			t042 = @t042, 
			t043 = @t043, 
			t044 = @t044, 
			t045 = @t045, 
			t046 = @t046, 
			t047 = @t047, 
			t048 = @t048, 
			t049 = @t049, 
			t050 = @t050, 
			t051 = @t051, 
			t052 = @t052, 
			t053 = @t053, 
			t054 = @t054, 
			t055 = @t055, 
			t056 = @t056, 
			t057 = @t057
		WHERE [user_id] = @TargetUser
	END		 
	
	ELSE IF @InputApp = 'UG'
	BEGIN 
		UPDATE MIG_UG_PREFERENCES
		SET			 
			u001 = @u001, 
			u002 = @u002, 
			u003 = @u003, 
			u004 = @u004, 
			u005 = @u005, 
			u006 = @u006, 
			u007 = @u007, 
			u008 = @u008, 
			u009 = @u009, 
			u010 = @u010, 
			u011 = @u011, 
			u012 = @u012, 
			u013 = @u013
		WHERE [user_id] = @TargetUser
	END

	ELSE IF @InputApp = 'WEBPLM'
	BEGIN
		UPDATE MIG_PLM_PREFERENCES
		SET
			w001 = @w001, 
			w002 = @w002, 
			w003 = @w003, 
			w007 = @w007, 
			w008 = @w008, 
			w009 = @w009, 
			w010 = @w010, 
			w011 = @w011, 
			w012 = @w012, 
			w013 = @w013, 
			w014 = @w014, 
			w016 = @w016, 
			w017 = @w017, 
			w018 = @w018, 
			w019 = @w019, 
			w020 = @w020, 
			w021 = @w021, 
			w022 = @w022, 
			w023 = @w023, 
			w024 = @w024, 
			w025 = @w025, 
			w026 = @w026, 
			w027 = @w027, 
			w028 = @w028, 
			w029 = @w029, 
			w030 = @w030, 
			w031 = @w031, 
			w032 = @w032, 
			w033 = @w033, 
			w034 = @w034, 
			w035 = @w035, 
			w036 = @w036, 
			w037 = @w037, 
			w038 = @w038, 
			w039 = @w039, 
			w040 = @w040, 
			w041 = @w041, 
			w042 = @w042, 
			w043 = @w043, 
			w044 = @w044, 
			w045 = @w045, 
			w047 = @w047, 
			w048 = @w048, 
			w050 = @w050, 
			w051 = @w051, 
			w052 = @w052, 
			w053 = @w053, 
			w054 = @w054, 
			w055 = @w055, 
			w056 = @w056, 
			w057 = @w057, 
			w058 = @w058, 
			w059 = @w059, 
			w060 = @w060, 
			w061 = @w061, 
			w063 = @w063, 
			w064 = @w064, 
			w065 = @w065, 
			w066 = @w066, 
			w067 = @w067, 
			w068 = @w068, 
			w069 = @w069, 
			w070 = @w070, 
			w071 = @w071, 
			w072 = @w072, 
			w073 = @w073, 
			w074 = @w074, 
			w075 = @w075, 
			w076 = @w076, 
			w077 = @w077, 
			w078 = @w078, 
			w079 = @w079, 
			w080 = @w080, 
			w081 = @w081, 
			w082 = @w082, 
			w083 = @w083, 
			w084 = @w084, 
			w085 = @w085, 
			w086 = @w086, 
			w087 = @w087, 
			w088 = @w088, 
			w089 = @w089, 
			w090 = @w090, 
			w091 = @w091, 
			w092 = @w092, 
			w093 = @w093, 
			w094 = @w094, 
			w095 = @w095, 
			w096 = @w096, 
			w097 = @w097, 
			w098 = @w098, 
			w099 = @w099, 
			w100 = @w100, 
			w101 = @w101, 
			w102 = @w102, 
			w103 = @w103, 
			w104 = @w104, 
			w105 = @w105, 
			w106 = @w106, 
			w107 = @w107, 
			w108 = @w108, 
			w109 = @w109, 
			w112 = @w112, 
			w113 = @w113, 
			w114 = @w114, 
			w115 = @w115, 
			w117 = @w117, 
			w118 = @w118, 
			w121 = @w121, 
			w122 = @w122, 
			w123 = @w123
		WHERE [user_id] = @TargetUser
	END

	CLOSE RecordsCursor
END

