query problem with LDAP connection

  • Hi

    My query works, but when I add the attribute description, I have the following error:

    ---

    Msg 7346, Level 16, State 2, Line 2

    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.

    ---

    Query :

    SELECT * FROM

    OpenQuery(ADSI, 'SELECT

    sAMAccountName

    ,sn

    ,cn

    ,givenname

    FROM ''LDAP://ou=XXX,ou=Companies,DC=XXXXX,DC=net''

    WHERE objectClass = ''User'' AND objectCategory=''person''')

    Thanks in advance,

    Stever

  • Did you get this resolved by any chance? I'm trying to query the 'member' attribute and I get the same exact error that you get.

    I would appreciate any help!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply