Platform SDK: Active Directory, ADSI, and Directory Services

ADO SQL Dialect

In ADO using SQL dialect, you must use single quotes around the attribute and range specifier.

For example:

Command.Text = "select Name, 'member;Range=0-50' from 'LDAP://CN=Group1,DC=Microsoft,DC=Com'  where objectCategory='group'"