- jayesh Gupta
- PowerBuilder
- Wednesday, 30 June 2021 05:16 AM UTC
SQL Server setting is "ansi_padding"=ON and using JSONIMPORT to import data into datawindow but wherever data type of column in SQL server is CHAR, trailing spaces are coming.
If we don't use JSONImport functionality to import data into Datawindow so trailing spaces not come due to INI setting as provided below
SQLCA.DBParm = "Provider='SQLNCLI11',Database='"+ls_database_name +"',TrimSpaces=1,NCharBind=0, PBTRIMCHARCOLUMNS='YES'".
I tried everything feasible thing, please give me the solution as I don't want to change the data type from CHAR to VARCHAR for many table's columns.
you can mail me also at sunil.agrawal@diaspark.com.
Thanks in advance.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.