Solved

ODBC connection from Lotus Notes to SQL 2000 db.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

16 Experts available now in Live!

Get 1:1 Help Now