I have the following update statement :
UPDATE D
SET D.Xtra1 = CASE
when ExtendedProperties.PropertyName="Transmittal Number" then ExtendedProperties.PropertyValue
else NULL
END,
D.Xtra2 = CASE
when (ExtendedProperties.PropertyName="File Identification") then ExtendedProperties.PropertyValue
else NULL
END,
D.Xtra3 = CASE
when (ExtendedProperties.PropertyName="File Owner") then ExtendedProperties.PropertyValue
else NULL
END,
D.Xtra4 = case
when (ExtendedProperties.PropertyName="Dept File Cabinet") then ExtendedProperties.PropertyValue
else NULL
END ,
D.Xtra5 = case
when (ExtendedProperties.PropertyName="Record Storage Box Number") then ExtendedProperties.PropertyValue
else NULL
END ,
D.Xtra6 = case
when (ExtendedProperties.PropertyName="ImportCode") then extendedProperties.PropertyValue
else NULL
END ,
D.Xtra7 = case
when (ExtendedProperties.PropertyName="ImageKey") then extendedProperties.PropertyValue
else NULL
END ,
D.Xtra8 = case
when (ExtendedProperties.PropertyName="Boundary") then ExtendedProperties.PropertyValue
else NULL
END ,
D.Xtra9 = case
when (ExtendedProperties.PropertyName="Offset") then ExtendedProperties.PropertyValue
else NULL
END ,
D.Xtra10 = case
when (ExtendedProperties.PropertyName="UniqueFilename") then ExtendedProperties.PropertyValue
else NULL
END
from ExtendedProperties inner join data D on D.ItemID = ExtendedProperties.ItemID
the updating isn't working and i have yet to figure out why.
if i do a single direct update statement, it does allow me to write to the field. if i do a select just on one of the case statements, it draw the field correctly.
any ideas?