SQL Server 2014. I have a column in a table of type VARCHAR(max). The column is used as a free-form comments field for an invoice. When I try to access the column on the invoice freeform datawindow, I receive the following error:
Microsoft SQL Server Native Client 11.0. Multiple-step OLE DB operation generated errors.
Do I need to change the column type in the database? Cast it to a different type in the SQL statement? Is there something I'm missing in the connection string?
Thank you,
Joe Hess
Thanks for the heads up on the trace. Turned out the problem was a varchar(max) field in a nested report. The report definition had the column type at CHAR(4099). I reselected the column. PB changed it to CHAR(32766). Is that the max it can go? Is there a better way to put a large text column on a datawindow?
Joe
Yes, the DWO column size handling is 32K. A limitation from way back in the PowerSoft days before Sybase even took over PB. Anything greater than that size you have two alternatives: 1) use the DWO's TableBlob feature or 2) handle the large data stream yourself via a SelectBlob command.
Regards ... Chris