I'm trying to query Active Directory from a stored procedure using OPENQUERY and add the values to a temporary table. I've got everything working, except when I add the 'proxyAddresses' field to my query, it throws this error:
"OLE DB error trace [OLE/DB Provider 'ADSDSOOBject' IRowset::GetData returned 0x80040e21: Data status returned from the provider: [COLUMN_NAME=proxyAddresses STATUS=DBSTATUS_E_CANTCONVERTVALUE]]. Msg 7346, Level 16, State 2, Line 2 Could not get the data of the row from the OLE DB provider 'ADSDSOOBject'. Could not convert the data value due to reasons other than sign mismatch or overflow."
Has anyone ever had experience with querying the 'ProxyAddresses' property from SQL? I think I read somewhere that it was returned as an array. Maybe that's the problem?
Thanks!