- Falguni Patel
- PowerBuilder
- Sunday, 8 October 2023 03:47 AM UTC
Hi,
I have migrated my application from PB 2019 to PB 2022. I am receiving below error message for datastore retrieval:
the data types varchar and text are incompatible in the greater than and equal to operator
However, the same works fine in Crystal Report retrieval and SSMS query using same connection type. This was working find for PB 2019 as well.
The datastore I am trying to retrieve is as below:
SELECT st_master.stock_id,
st_master.company_id
FROM st_master
WHERE ( st_master.company_id = :as_company_id ) AND
( st_master.stock_id >= :as_stock_id_from ) AND
st_master.stock_id <= :as_stock_id_to AND
( st_master.stock_type = 'S' ) AND
( st_master.status = 'A' )
The datatype for both columns are varchar in SQL Server.
Your advise will be greatly appreciated.
Kind regards,
Falguni
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.