Hi All.
I'm using PB2022 to develop an application that connects to a SQL Server database via MSOLEDBSQL. The syntax is shown below.
// Profile Database (MSSQL)
SQLCA.DBMS = "MSOLEDBSQL SQL Server"
SQLCA.LogPass = <***********>
SQLCA.ServerName = "NNN.NN.NN.NNN"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Database='XXX',TrimSpaces=1"
The problem is that his doesn't seem to be working for me. The character fields in my application still contain trailing blanks. In places where I can, I need to add the Trim function to correct this issue, but I cannot use that in all cases, so I need to find out what I can do to correct this.
Any assistance would be much appreciated.
Thank you.
Thank you for your reply, I did review that thread before I submitted mine, and I tried switching my connection profile to ODBC so see if that made any difference, but it didn't seem to (unless there is something else that I am not doing that I should be). I should add that I didn't have the setting on in the IDE profile before yesterday, but I have been using it in the application INI file all along. It just doesn't seem to work with MSSQL for me.