View Single Post
  #2 (permalink)  
Old 10-30-2009, 06:57 AM
Ryne's Avatar
Ryne Ryne is offline
BES Activated
 
Join Date: Oct 2009
Location: Canada
Posts: 5
Default SQL Script - How To Check DB for BIS Users

-- Change the '%@BES_Domain.com%'to the current working BES domain to omit thoes from the results


SELECT count(dbo.UserConfig.Id), dbo.UserConfig.DisplayName
FROM dbo.UserConfig INNER JOIN
dbo.SyncDeviceMgmt ON dbo.UserConfig.Id = dbo.SyncDeviceMgmt.UserConfigId
WHERE dbo.SyncDeviceMgmt.data like '%@%' and syncdevicemgmt.id not in
(select id from syncdevicemgmt where dbo.SyncDeviceMgmt.Data LIKE '%@BES_Domain.com%')
Group by dbo.UserConfig.DisplayName
Attached Files
File Type: rar SQL How To Check DB for BIS Users.rar (381 Bytes, 44 views)
Reply With Quote