B4J Question net.sourceforge.jtds.jdbc.ClobImpl ?! RDC Client

I, too am confused. The following query in RDC.
Code: Copy
sql.GetPartMasterPicsQry=SELECT PartMasterPics.Pmp_PictureName, PartMasterPics.Pmp_Notes, PartMasterPics.Pmp_PrintOnTrav FROM PartMasterPics WHERE (((PartMasterPics.Pmp_PmLinkID)=?)) ORDER BY PartMasterPics.Pmp_SortOrder;
Returns:
upload_2014-8-3_12-41-11.png

The first and last field are fine. I have no idea what to do with the second. It should be returning a line or so of text.
here is the relevant code:
Code: Copy
Dim result As DBResult = reqManager2.HandleJob(Job)
If result.Tag = "GetPartMasterPicsQry" Then
   For Each records() As Object In result.Rows
      PicsList.AddTwoLines2(records(0), records(1), records(0))
   Next
End IF
The field in SQL Server is nvarchar(MAX). Perhaps the easiest thing to do is CAST it to a regular text in the query?
 
Last edited:
Upvote 0
Interesting, I solved the problem by changing the query and Changing the return field type:
Code: Copy
SELECT PartMasterPics.Pmp_PictureName, Cast(PartMasterPics.Pmp_Notes AS nvarchar(100)), PartMasterPics.Pmp_PrintOnTrav FROM PartMasterPics WHERE (((PartMasterPics.Pmp_PmLinkID)=19890)) ORDER BY PartMasterPics.Pmp_SortOrder;
But I would still like to know how to handle very long note fields in the future.
 
Upvote 0
Back
Top