Active Directory Groups With SQL Server 2005 -


OK, so I already have an existing connection to Active Directory on my server. I know that Active Directory works the query. What do I want to be able to do, and / or query for groups in Active Directory, and also be able to find the users are those groups / ous

This current is the query that only pulls user information (or all users to be part of a stored process established):

  select userAccountControl, DisplayName [NAME], givenName FIRSTNAME, middleName, SN As as as LASTNAME, as EMPID, as well as telephoneNumber EmployeeID EXT, title, department, such as division, SAMAccountName username, mail email, homeDirectory homedir, as UserPrincipalName logon, OPENQUERY manager (ADSI, 'select UserAccountControl, DisplayName, GivenName, MiddleName, SN, EmployeeID, telephoneNumber, title, department, division, SAMAccountName, mail, homeDirectory, userPrincipalName,' LDAP: / Derivedtbl_1  

from 'name' to 'manager' where SNADS displaysName 'order') >

Are you aware of the fact that you can not query more objects than ADS server, ready to return to an answer?

The ADSI SQL Provider does not support paging through the result. E-server usually return only to the first 1000 results only.

You are querying for almost all e-commodities at a time if you are not likely to reach much the limit.

You can clarify what you are trying to achieve?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -