
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2017 10:55 PM
Select count(*),
tblADGroups.Name As ADGroupName
From tblADMembership
Left Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Right Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Where tblADGroups.Name Like 'VPN%'
group by tblADGroups.Name
Can someone help me with this? It works in management studio but not in LanSweeper.
tblADGroups.Name As ADGroupName
From tblADMembership
Left Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Right Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Where tblADGroups.Name Like 'VPN%'
group by tblADGroups.Name
Can someone help me with this? It works in management studio but not in LanSweeper.
Solved! Go to Solution.
Labels:
- Labels:
-
General Discussion
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 11:03 AM
The report was likely being rejected by the report builder because your count column didn't have an alias.
Select Count(*) As Total,
tblADGroups.Name As ADGroupName
From tblADMembership
Left Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Right Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Where tblADGroups.Name Like 'VPN%'
Group By tblADGroups.Name
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 11:03 AM
The report was likely being rejected by the report builder because your count column didn't have an alias.
Select Count(*) As Total,
tblADGroups.Name As ADGroupName
From tblADMembership
Left Join tblADGroups On tblADMembership.ParentAdObjectID =
tblADGroups.ADObjectID
Right Join tblADusers On tblADMembership.ChildAdObjectID =
tblADusers.ADObjectID
Where tblADGroups.Name Like 'VPN%'
Group By tblADGroups.Name
