select * from OpenQuery(ADSI, N'<LDAP://OU=some_ou,DC=some_dc>;(&(objectCategory=Person)(objectClass=User));name,sn,adspath,mail,samaccountname, st' ) order by 1