Unanswered: Importing Multi-Value LDAP information into SQL
I've been querying LDAP to pull information for our servers but have found certain fields (particularly the description attribute) in LDAP are Multi-Value fields and cannot be queried, at least without some additional code.
I figured this would have been a more common issue but have been unable to find anything specifically in my searches thus far.
Is there some kind of function or stored procedure in SQL that I need to use to convert the Multi-Value data to string data maybe?
FYI - I'm not a complete novice with SQL but i'm not a full tilt programmer either. I'd really appreciate any input.
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.
Thanks for the input everyone. The C# solution sounds nice but I know I can do it in VBscript which I have more experience with so I'll probably go with that. I was just wondering if there was some way to do this natively in SQL.