Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unity SQL Query for Distibution lists

Status
Not open for further replies.

climbingfool

IS-IT--Management
Aug 13, 2007
4
US
I am trying to run a query that will list all members of a distribution list along with their extension, first and last name.

Here is the query I am trying to build off:
select dtmfaccessid, vw_distributionlist.alias, systemdlistmember.alias, systemdlistmember.displayname
from vw_distributionlist
join systemdlistmember on parentobjectid=systemdlistobjectid
where dtmfaccessid like 90090122
order by systemdlistmember.displayname

I don't think you can query against vw_distribuionlist and vw_subscriber at the same time.

Any ideas?

Thanks
Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top