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