1. Juan Jara
  2. PowerBuilder
  3. Friday, 30 June 2023 10:59 AM UTC

Hello,

My connection with the sqlserver is by OLEDB.

I have a datawindow with a columns style type richtext corresponding to varchar(max) fields in sqlserver.

The problem is that the maximum char of the field is 32766.

How can I save richtext fields that a larger size?

Thank you in advance,

Juan

Juan Jara Accepted Answer Pending Moderation
  1. Friday, 30 June 2023 15:42 PM UTC
  2. PowerBuilder
  3. # 1

Hello Chris,

 

Correct, I am using OLE Microsoft OLDE DB. I will try to test widht MSOLEDBSQL

 

Thank you Chris,

Than you Mike.

 

Regards, Juan

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Friday, 30 June 2023 14:24 PM UTC
  2. PowerBuilder
  3. # 2

Comment
  1. Chris Pollach @Appeon
  2. Friday, 30 June 2023 15:18 PM UTC
Hi Mike;

Yes, all the SS DB connections need to have the PB App set the SQLCA DBParm field as follows:

SQLCA.DBParm = "Database='Chris',TrimSpaces=1,DelimitIdentifier=1,AppName='PowerBuilder',Host='STD-Chris',PBMaxTextSize=1024000"

where *PBMaxTextSize* is the key setting if you want to use anything > 32K. ;-)

However, this connection parameter *only* applies to the folloing SS DB drivers...

SNC SQL Native Client for Microsoft SQL Server

MSOLEDBSQL Microsoft OLE DB Driver for SQL Server

AFAIK: OLEDB does not support this.

FWIW: ODBC does support this setting but you would have to set that in the PBODB.ini file & then make sure that you deploy that INI with your PB App;s EXE.

HTH

Regards ... Chris

  1. Helpful
  1. mike S
  2. Friday, 30 June 2023 15:50 PM UTC
PBODB.ini also controls it (i assume) for oledb as it is used for other things:

"The PowerBuilder OLE DB interface file is required if your application uses OLE DB. The ODBC initialization file is required if you have used it to customize OLE DB settings:"



in any case, this the setting to have the datawindow char(32766) to be more than 32766 without manually editing the datawindow syntax



  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 June 2023 12:16 PM UTC
  2. PowerBuilder
  3. # 3

Hi Juan;

   Your problem could be related to the DB client software that your using. How is your App connecting to SS?

Regards ... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.