Ylvaho
asked on
Just 1000 answers when trying to query Active Directory
Hello!
I am using a linked server to query Active directory and
SELECT * FROM OpenQuery(ADSI,'<LDAP://sk olhem1/DC= skola,DC=s undsvall,d c=local>;( &(objectCa tegory=Per son)(objec tClass=use r));name, adspath;subtree') where name='be89mape'
does work when I ask for one of the first 1000 users but not if I ask for any of the others. What I want to do is to compare the OU that is stored in the SQL-server with the OU the user actually belongs to in AD so that is why I don't want to give the ou in the LDAP-string.
I hope you understand the question...
Ylva
I am using a linked server to query Active directory and
SELECT * FROM OpenQuery(ADSI,'<LDAP://sk
does work when I ask for one of the first 1000 users but not if I ask for any of the others. What I want to do is to compare the OU that is stored in the SQL-server with the OU the user actually belongs to in AD so that is why I don't want to give the ou in the LDAP-string.
I hope you understand the question...
Ylva
With Windows 2000 you are limited to a maximum of 1000. You will have to get additional values using a range.
ASKER
OK. There is no way around that limit? With Windows 2003 is it different?
Ylva
Ylva
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.