I do not have any experience with LDAP but it sounds like you need to parse a multi valued field with SQL Servers string functions (SUBSTRING, CHARINDEX, LEFT, RIGHT etc...). Although if you have some application code that this stuff passes through it may be quicker and more efficient there because SQL is historically a poor performer in parsing strings.