Solved

ODBC connection from Lotus Notes to SQL 2000 db.

Posted on 2008-11-03
3
1,188 Views
Last Modified: 2013-11-17
I'm tring to get a keyword list in Notes (V5.5) using ODBC to connect to table in SQL 2000 DB. I've setup the ODBC connection in Data Source Admin (WinXP SP2).

In the Notes form I'm getting this error consistently when clicking into the field doing the @dbcolumn lookup, regardless of which DB I'm trying to access "@db function failed because the data type of the requested column is unsupported".

Using the same ODBC connection I can successfully bring external data into Excel for example.

The versions of ODBC drivers on my PC are:
SQL Native Client 2005.90.3042.00
SQL Server 2000.85.1117.00
The code in the field is:
 
@DbColumn("ODBC":"Cache"; "MyDataSourceName"; "";""; "dbo.MyTable"; "MyField": "Discard" ;"Distinct" : "Ascending")

Open in new window

0
Comment
Question by:dpeadmin
3 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 22871471
Not sure but it could be that the field defined is not the same type as being pulled from the Notes DB.

Excel will change the type on the fly based on the data, Notes will not.


I hope this helps !
0
 

Author Comment

by:dpeadmin
ID: 22874905
Thanks SysExpert. This put me somewhat in the right direction.

I've successfully got Notes to do a dbcolumn lookup to a field containing data type = "char". This still leaves me with the issue that the data I want to retrieve from the table is of type "nvarchar". Is Notes unable to handle this data type?

0
 

Accepted Solution

by:
LMS-PSG earned 125 total points
ID: 22886367
nvarchar is double byte. I've written lotusscipt to handle this but I'm not sure if if the formula language can handle it.

Does the data type have to be in double byte, could you ask your DBA to create you another view and cast it into a varchar.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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