Link to home
Start Free TrialLog in
Avatar of TRACEYMARY
TRACEYMARY

asked on

returning records from active directory

when i return records from active directory the max no of records i get is 1000
select distinguishedname, employeeid, sn, middlename, givenname, displayname, samaccountname, mail, cn, telephonenumber
 from OpenQuery( ADSI, 'SELECT telephonenumber, distinguishedname, employeeid, sn, middlename, givenname, displayname, samaccountname, mail, cn, telephonenumber
 FROM ''LDAP://DC=domain,DC=mydc,DC=com''
 WHERE objectCategory = ''Person'' AND objectClass= ''user''
 AND sn >=''m''')

anyone know why is there a limitiation.....?
ASKER CERTIFIED SOLUTION
Avatar of ASP4ME
ASP4ME

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TRACEYMARY
TRACEYMARY

ASKER

i see the max size ......how do i add the cmd.properties to the script above as im doing this all in sql select.
thanks...............