Solved

Problem getting data from LDAP - Could not convert the data value due to reasons other than sign mismatch or overflow.

Posted on 2008-10-30
3
2,035 Views
Last Modified: 2010-04-21
Hi Experts,

I'm trying to drag back some data using an LDAP connection in Query Analyzer.

The following sql ...

select      personaltitle, givenname
from      openquery(ADSI,
      'select      btpersonaltitle, givenname
       from      ''LDAP://myldapserver/ou=people,ou=xyz,o=ABC''
       where      workforceid = 12345')

Brings back the following error ...

Server: Msg 7346, Level 16, State 2, Line 1
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.
OLE DB error trace [OLE/DB Provider 'ADsDSOObject' IRowset::GetData returned 0x40eda:  Data status returned from the provider: [COLUMN_NAME=givenname STATUS=DBSTATUS_E_CANTCONVERTVALUE], [COLUMN_NAME=personaltitle STATUS=DBSTATUS_S_OK]].

I think this might be caused by the givenname coming back as an array but I'm afraid to say I don't know how to deal with it if it is. For the life of me I can't get this right - all I want is a single line to come back with the name and title of the person.

Can you help??

Many thanks in advance.
SWD
0
Comment
Question by:SurreyWebDesigner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
MohammedU earned 500 total points
ID: 22846774
0
 

Author Comment

by:SurreyWebDesigner
ID: 22848362
So you're saying this is a problem within SQL Server?? I won't be able to get sign-off to apply a hotfix to our server so this isn't much help I'm afraid.

I've been told by one of the guys working in the Active Directory team in our company that this response is expected because the data is being returned in an array.

So I thought it would be a reasonably straightforward thing to sort out (if you know what to do obviously!!)

Thanks
SWD
0
 

Author Closing Comment

by:SurreyWebDesigner
ID: 31511659
Thanks for your help on this. Although it means I'm a bit stuck moving forward I realise that this is probably what I need to do to get things fixed. Thanks again.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question