views:

808

answers:

1

The only field i cannot grab is the 'description' field from our AD. The error is:

Cannot get the data of the row from the OLE DB provider "ADsDSOObject" for linked server "ADSI". Could not convert the data value due to reasons other than sign mismatch or overflow.

Is their some datatype i can use to handle the object it is trying to return.

+1  A: 

I guess your problem is the fact that AD can store multiple values in a single field (quite contrary to the very first normalization rule in relational databases).

Not sure what your query looks like - but could you possibly try to add a "[0]" indexer to the description attribute, by any chance??

Marc

marc_s
unfortunatley no, i just re-wrote our AD query in a CLR Stored Proc and Function in .net to get the data.
chicken