[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

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.....?
0
TRACEYMARY
Asked:
TRACEYMARY
1 Solution
 
ASP4MECommented:
It will default to 1000 records max, but you can set the pagesize to overcome this.

cmd.properties("page size ")= 500

Look about half way down on this site for more information

http://www.wisesoft.co.uk/scripts/adprog_part2.php

JR
0
 
TRACEYMARYAuthor Commented:
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...............
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now