I have to make sure that new users do not get an already used number. Scanning 40000 accounts every time I find a new user is not very effective.

I would store this number in a database table and increment every time you need a new number.
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to