I'm trying to retrieve a field of the type 'TEXT' from an SQL server database and can't figure out how to do it. I've written a syntactically correct stored procedure that I can execute and get the text in Query Analyzer, but it won't return any records in VB, and if I try to open a recordset with the code, I STILL don't get anything back...
Set Rsptr = DBConn.OpenRecordset("DECLARE @PtrVal varbinary(16) SELECT @PtrVal = textptr(Issue) From Issue WHERE ID = " & !Id & " readTEXT Issue.Issue @PtrVal 0 0 ", dbOpenSnapshot)
This part works - I get the pointer back...
If Not Rsptr.EOF Then Set RSIssues = DBConn.OpenRecordset("readTEXT Issue.Issue " & Rsptr!Pekare & " 0 0", dbOpenSnapshot)
No error here...
meddelande$ = meddelande$ & Trim(RSÄrende!Ärende) & vbCrLf
End If
Error - I don't get any column back...
/Cy