Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1211
  • Last Modified:

ODBC connection from Lotus Notes to SQL 2000 db.

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
dpeadmin
Asked:
dpeadmin
1 Solution
 
SysExpertCommented:
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
 
dpeadminAuthor Commented:
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
 
LMS-PSGCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now