Hello,
I've just starting to test SQL server 2022 with PowerBuilder 2022 R3.
I'm facing a problem with the statments sent by PB to the DB when a retrieval argument is a datetime.
With the old version of SQL server (2000) this was the syntax :
SELECT c.identifiant_commande FROM commande c WHERE c.date_creation >= '2024-01-01 00:00:00.000'
With the new version, quotes are missing :
SELECT c.identifiant_commande FROM commande c WHERE c.date_creation >= 2024-01-01 00:00:00.000
Select Error: SQLSTATE = 42000
Microsoft SQL Server Native Client 11.0
Syntaxe incorrecte vers '00'.
Same thing with an update :
UPDATE utilisateur SET date_modif = 13/03/2024 14:11:12.033 WHERE identifiant_utilisateur = 5367
SQLSTATE = 42000
Microsoft SQL Server Native Client 11.0
Syntaxe incorrecte vers '14'.
No changes made to database.
I've tried with both SNC (11) and MSO (19.3) drivers.
DBParm=Provider='SQLNCLI11',DateTimeFormat='dd/mm/yyyy hh:mm:ss.fff'
or
DBParm=Provider='MSOLEDBSQL19',DateTimeFormat='dd/mm/yyyy hh:mm:ss.fff'