BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-15-2012, 05:20 PM   #1
e2matt
New Member
 
Join Date: Aug 2010
Model: 8530
PIN: N/A
Carrier: Telus
Posts: 3
Default SQL Query find Last Com. Time

Please Login to Remove!

I'm looking to generate a list of devices that have not had any communication since < 'xxxx-xx-xx'. I can't seem to find a table on the BES SQL DB that has this data but it is available in BES when viewing device properties > status.

Anyone have any suggestions?
Offline  
Old 02-15-2012, 05:43 PM   #2
knottyrope
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: DT60
OS: 123456789
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 7,325
Default Re: SQL Query find Last Com. Time

SQL Query to pull "Last Connected" - Port3101.org : Your BES Connection
__________________
I had to fall
To lose it all
But in the end
It doesn't even matter

Rocking the Motion with out lotion.
Offline  
Old 02-20-2012, 01:58 PM   #3
MikeB
Thumbs Must Hurt
 
Join Date: Feb 2005
Location: Canada
Model: 8830
Carrier: BELL
Posts: 65
Default Re: SQL Query find Last Com. Time

I used :

SELECT US.LastContactTime, UC.MailBoxSMTPAddr, UC.CreationTime FROM UserStats US
INNER JOIN UserConfig UC ON UC.id = US.UserConfigId
ORDER BY US.LastContactTime
__________________
7 Bes Servers on Domino
4000 Satisfied Users
Offline  
Old 02-20-2012, 02:10 PM   #4
juwaack68
iPhone Convert
 
juwaack68's Avatar
 
Join Date: Oct 2005
Location: Tulip City - MI
Model: iP5
OS: 6.0.2
PIN: to beans
Carrier: I'm not
Posts: 13,878
Default Re: SQL Query find Last Com. Time

I use this one:

Code:
select 
 a.DisplayName,
 a.mailboxsmtpaddr,
 c.ModelName,
 c.VendorID,
 c.AppsVer,
 c.PhoneNumber,
 c.PIN,
 c.HomeNetwork,
 convert(varchar(10),a.CreationTime, 101)CreationDate,
 convert(varchar(10),a.ActivationTime, 101)ActivationDate, 
 b.MsgsForwarded,
 b.MsgsSent,
 convert(varchar(10),b.LastFwdTime, 101)LastFwdDate,
 convert(varchar(10),b.LastSentTime, 101)LastSentDate
 from userconfig a, userstats b, vHandheldSummaryInfo c
 where a.id = b.userconfigid and a.displayname = c.displayname
 order by a.displayname
__________________
No longer a BES Admin, but it was fun while it lasted!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: SQL Query find Last Com. Time
Thread Thread Starter Forum Replies Last Post
MDS application devlopment HELP! - MS SQL database query dipen Developer Forum 0 09-14-2009 03:13 AM
Sync Error....What could it be? kurrupt_1 General 8300 Series Discussion - Curve 7 11-22-2007 07:41 PM
DB Upgrade Failed. Error Executing SQL statement SimonMac BES Admin Corner 18 09-27-2007 08:03 AM
Database Backup...and restore. how? alwayzurboy BES Admin Corner 8 07-03-2007 07:24 AM


Fanuc Motherboard A16B-3200-0429/07B picture

Fanuc Motherboard A16B-3200-0429/07B

$674.25



1PCS FANUC System Motherboard A20B-8100-0662 picture

1PCS FANUC System Motherboard A20B-8100-0662

$1595.18



ABB ACS880 motherboard ZCU-14 3AXD5000005164 1PCS picture

ABB ACS880 motherboard ZCU-14 3AXD5000005164 1PCS

$990.00



ABB control motherboard 3BHE024855R0101 UF C921 A101 picture

ABB control motherboard 3BHE024855R0101 UF C921 A101

$2160.00



00-900658-01 Workstation Motherboard for an OEC 9600 X-Ray C-Arm System picture

00-900658-01 Workstation Motherboard for an OEC 9600 X-Ray C-Arm System

$400.00



Used & Tested KONTRON 18008-0000-14-2 YXC330339 Motherboard picture

Used & Tested KONTRON 18008-0000-14-2 YXC330339 Motherboard

$785.18







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.