Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Enterprise Integration Forum

Enterprise Integration Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

RE: Numeric data from SQL Server getting truncated
Martin Perrie 26.Sep.14 11:41 AM a Web browser
Connector for OLE DB LC LSX - All Releases Windows


Thanks for your response, Daniel.

It is using the OLEDB connector. The data is pushed into a Notes number item. However, I can see the issue before that point. If I debug the script then, after the FETCH, the value of the LCFIELD shows only one decimal place.

This is occurring on a customer's server. I have also replicated the issue on my server.

I have found a workaround, though. In the SQL SELECT statement, if I CAST the column as numeric(15,3) i.e. allowing for 3 decimal places then it actually returns the value to two decimal places - which is the value I need.

I took this one step further and changed the definition of the column on the SQL table to numeric(15,3) and added a value to the 3rd decimal place of the data being returned. With the column still CAST as numeric(15,3) it only returns two decimal places. But once CAST as numeric(15,4) it returns three decimal places.

All very strange! I don't know what's going on given that it is absolutely fine, and works as expected, when the value is greater than 1.




Numeric data from SQL Server gettin... (Martin Perrie 25.Sep.14)
. . RE: Numeric data from SQL Server ge... (Daniel W Heiche... 26.Sep.14)
. . . . RE: Numeric data from SQL Server ge... (Martin Perrie 26.Sep.14)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite