Thanks to the above query from Lisa Yates; very useful! I found in my version (4.0 SP5) that the first character translation worked better than the newer one (the only difference were apostrophes), but some of the object types were no longer valid. I modified the query slightly and thought I would post it here. I donβt guarantee the object types are correct though; if anyone has any improvements please post. I figured out more objects types but there are so many I ended up ignoring the ones I didnβt find useful.
SELECT
Type,
UPPER(LEFT(ObjectName,LEN(ObjectName)-2)) AS ObjectName,
ObjectID,
ParentID,
CAST(SUBSTRING(LastModified,1,4)+'-'+SUBSTRING(LastModified,6,2)+'-'+SUBSTRING(LastModified,9,5)+':'+
SUBSTRING(LastModified,15,2)+':'+SUBSTRING(LastModified,18,2)+'.'+SUBSTRING(LastModified,21,3) AS DATETIME)
AS LastModified
FROM (
SELECT
ObjectID,
ParentID,
case
when TypeID = 1 then 'Folder'
when TypeID = 2 then 'Crystal Report'
when TypeID = 14 then 'FRS'
when TypeID = 16 then 'Server'
when TypeID = 18 then 'Personal Folder'
when TypeID = 19 then 'User' -- what are 47,48?
when TypeID = 20 then 'Group'
when TypeID = 57 then 'Access Level'
when TypeID = 322 then 'Webi Report'
when TypeID = 346 then 'Universe'
else 'Other'
end AS Type,
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(
replace(replace(replace(replace(replace(replace(replace(
CAST(ObjName as VARCHAR(2000)),'S','v'),'M','s'),'A','m'),')','a'),'+','b'),'C','n')
,'-','c'),'/','d'),'O','t'),'E','o'),'1','e'),'3','f'),'G','p'),'5','g'),'7','h'),'W','x')
,'U','w'),'Q','u'),'I','q'),'9','i'),':','i'),';','j'),'K','r'),'=','k'),'?','l'),'[','y')
,']','z'),'!@',' '),'B~S','&'),'!BO','.'),'B|C"','('),'!B|D',')'),'M|Z','-'),'M}L',',')
,'M|N','_'),'M}Z',':'),'!B{B',''''),'`|<','0'),'`|>','1'),'`|@','2'),'`|B','3'),'`|D','4')
,'`|F','5'),'`|H','6'),'`|J','7'),'`|L','8'),'`|N','9'),'{',''),'!',''),'"',''),'@','')
AS ObjectName,
CAST(LastModifyTime AS VARCHAR(30)) AS LastModified
FROM CMS_InfoObjects7
) BORepository
WHERE 1=1
--AND ObjectName LIKE '<USERNAME>%' AND TypeID = 18
AND ParentId = <ParentObjectID>
[Moderator Edit: Added code formatting - Andreas]
craiggsmith (BOB member since 2009-06-01)