We always used the SQL Server ODBC driver for connection.
However, SQL Server data are not accepted on servers that doesn't allow SSL 1.0.
Therefore we want to use other drivers ({SQL Server Native Client 11.0} or {ODBC Driver 13 for SQL Server} or {ODBC Driver 17 for SQL Server}).
Using these other drivers we get an error updating a datastore with a nvarchar(max) (nvarchar(max) in the SQL table): The data types nvarchar(max) and ntext are incompatible in the equal to operator.
I found a difference in the created syntax (createsyntaxfromsql) between the SQL Server and the other servers.
In SQL Server the nvarchar(max) column is defined with updatewhereclause=no, while in the other servers it is updatewhereclause=yes. This explains the error.
I can solve the problem with a modify updatewhereclause=no, but I think it is better that it works fine without a hack.
I wonder if there is a bug in the ODBC driver or in Powerbuilder (we use PB 2017 R3).
Has somebody the same problem and what to do about it?
Thank you for reading,
Kees van Heerden
So where does the ntext in the error come from. The driver or powerbuilder?