alienhunter Active Member Licensed User Longtime User May 15, 2014 #1 Hi Erel how do i read something like this back with the RDC Client ? i never seen this one http://jtds.sourceforge.net/doc/net/sourceforge/jtds/jdbc/ClobImpl.html is this a Text BLOB ? Thanks AH
Hi Erel how do i read something like this back with the RDC Client ? i never seen this one http://jtds.sourceforge.net/doc/net/sourceforge/jtds/jdbc/ClobImpl.html is this a Text BLOB ? Thanks AH
Erel B4X founder Staff member Licensed User Longtime User May 16, 2014 #2 It should return as an array of bytes. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Aug 3, 2014 #3 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: 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: Aug 3, 2014 Upvote 0
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: 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?
MrKim Well-Known Member Licensed User Longtime User Aug 3, 2014 #4 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
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.
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2014 #5 A clob is handled like a blob. You can use BytesToString keyword to convert it to a string. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Aug 4, 2014 #6 Erel said: A clob is handled like a blob. You can use BytesToString keyword to convert it to a string. Click to expand... Thanks, so much to remember! Upvote 0
Erel said: A clob is handled like a blob. You can use BytesToString keyword to convert it to a string. Click to expand... Thanks, so much to remember!