Welcome to Port3101.org : Your BES Connection Mark forums read | View Forum Leaders
Port3101.org : Your BES Connection



Reply
LinkBack Thread Tools Display Modes
SQL script to find users' device free memory
 
  #1 (permalink)  
Old 12-02-2008, 04:02 PM
Joolie's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: West Michigan
Posts: 763
Default SQL script to find users' device free memory

One script I run every now and then is one to check device free space - and if I'm in a really good mood I might even warn users with low space that their device could crash at any moment.

Remember only use 'select' in this statement so as not to potentially cause harm to your BESMgmt database.

Code:
select  
 b.DisplayName,
 convert(int, substring(a.data, patindex('%3>%',a.Data)+2, patindex('%</t3>%',a.data) - patindex('%3>%',a.Data) - 2))
from [dbo].syncdevicemgmt a, [dbo].UserConfig b
where a.tableid ='5' and a.userconfigid = b.id
order by 2
__________________
You may know me as Juwaack68
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-02-2008, 06:50 PM
John Clark's Avatar
BES Guru
 
Join Date: Dec 2008
Posts: 589
Default

What a nice Admin you are...
Reply With Quote
  #3 (permalink)  
Old 12-02-2008, 07:26 PM
Joolie's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: West Michigan
Posts: 763
Default

Don't tell.
__________________
You may know me as Juwaack68
Reply With Quote
  #4 (permalink)  
Old 12-02-2008, 08:46 PM
hdawg's Avatar
Proprietor
 
Join Date: Nov 2008
Posts: 2,238
Blog Entries: 147
Default

Great one!
__________________
http://blog.port3101.org/hdawg/

The views expressed by me on Port3101 and its affiliated sites are my own and do not necessarily reflect the views of my employer.
Reply With Quote
  #5 (permalink)  
Old 01-31-2009, 08:44 AM
BES Activated
 
Join Date: Jan 2009
Location: New York City
Posts: 2
Default

Probably a good idea to mention that a "read only" sql account should be created for reporting, to minimize any chance of unintentionally modifying the DB Better yet, use a backup of the DB

Just trying to keep the new admins out of trouble
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:03 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.


 

SEO by vBSEO 3.3.2 PL2