- Raymond Longoria
- PowerBuilder
- Wednesday, 6 January 2021 12:13 AM UTC
I just migrated a PB app from 8.0 to 2019 R2 with no errors. We are also moving from Sql Server 2008 to 2016. When testing the application against Sql Server 2016, I get the sqlca error "Mismatch between retrieve columns and fetch columns" on the first sql query. I compared the variables and db columns and they were fine. There were no db connection errors. The following is the sql and my db connection parms:
SELECT ACCESS_APP.Version, MessageToUsers, Displaymessageuntil
INTO :ls_appVersion, :ls_msgToUsers, :ldt_msgExpires
FROM ACCESS_APP
WHERE ACCESS_APP.app_name = :p_s_app_task ;
sqlca.DBMS = "SNC SQL Native Client(OLE DB)" //used to be "MSS Microsoft SQL Server"
sqlca.dbparm = "OJSYNTAX='ANSI'"
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.