Greetings community,
In the past few months, our company migrated multiple applications from Powerbuilder 9 to Powerbuilder 2019.
We did encounter something interesting: for varchar(max) and text column types, on our MSSQL database, all datawindow fields of those types are blank.
Powerbuilder 9 treats text/varchar(max) columns as char(4099) inside of the datawindow syntax.
While doing a series of tests we noticed that altering the datawindow column to char(32000) actually displays the content.
My two questions are the following:
- Is the fact that our text field is blank a bug? Shouldn't it display the content anyway?
- We have hundreds of datawindows that would need changes, how could we achieve this efficiently?
I will also add that we tried this with both "SNC SQL Native Client" and "MSOLEDBSQL" connection driver.
I thank you in advance.
Regards.
Texts won't be larger than that for sure
>Perhaps the real problem is that you have entered more than 4099 in the column? did it display when smaller text was entered?
The text did not display, even if 10 characters long and char(4099); it did get saved properly on the database tho.