Solved

ODBC connection from Lotus Notes to SQL 2000 db.

Posted on 2008-11-03
3
1,175 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now