My application runs on SQL Anywhere or SQL Server. I connect to SQL Anywhere via ODBC and SQL Server by ODBC or OLE DB (user's choice).
I am running into a problem where text columns are cut off at 32768. For SQL Server via ODBC I am able to override the limit by creating pbodb###.ini with this:
[Microsoft SQL Server]
PBMaxTextSize='1024000'
For OLE DB, 1024000 is the default length. The problem I am having is that the documentation says nothing about how to get past this limitation for SQL Anywhere.
For SQL Anywhere I tried casting it as binary and returning the data with selectblob. That seems to work so the limitation with SQL Anywhere seems to be only with text. The problem is that I may or may not have to convert the data from Ansi when converting from blob to string.
How do I overcome the text length limit with SQL Anywhere?
If I have to use blob, how do I tell if the data is Ansi or Unicode?