Quote:
Originally Posted by TGrabowski
If it's not the best way it sure worked perfectly. We're have the BES DB on a sql2005 server so this made your steps even easier. Thank you for the assist.
|
Glad to help.
Have to say the query i actually use is a bit more detailed:
Code:
select
Right(DisplayName, Len(DisplayName) - CharIndex(',',DisplayName)-1) + ' ' + Left(DisplayName, CharIndex(',',DisplayName)-1) AS UserName,
vUserConfigStats.Id,
PIN,
PhoneNumber,
MsgsPending,
LastContactTime,
HomeNetwork,
IMEI,
AppsVer,
ModelName,
ITPolicyName,
PasswordEnabled,
MsgsForwarded,
MsgsSent,
MsgsExpired,
MsgsFiltered,
MsgsFailed,
LastFwdTime,
LastSentTime,
vUserConfigStats.CreationTime,
GroupName
FROM vUserConfigStats JOIN GroupConfig
ON vUserConfigStats.GroupConfigID = GroupConfig.Id
ORDER BY LastContactTime