- Haakon Langballe
- PowerBuilder
- Tuesday, 10 December 2019 08:51 AM UTC
Hi.
My application has started pop up a message box on some data fetches.
The message is "Select error: SQL State = 22005 ... Invalid character for cast specification"
This may have started when I changed the connection to a newer SQL server. The provider is MS Native client 11.
I tried to set parameters on the transaction object without success. The exception handler is not catching this, I guess it is already handled.
This is my code fragment. The parameters to Retrieve() is matching the table column types.
Any ideas?
sqlca.DBParm="StripParamNames='Yes'"
sqlca.DBParm="CallEscape='No'"
dw_picker.settransobject(sqlca)
TRY
dw_picker.retrieve(1, 'B')
CATCH(Exception ex)
MessageBox("Error", ex.GetMessage())
END TRY
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.