1. Randy Zaffke
  2. PowerBuilder
  3. Wednesday, 20 April 2022 16:35 PM UTC

hello

we have an application that is accessed via citrix

we are upgrading our database servers to Microsoft sql 2019 from 2012

apologies I am definitely NOT a database connection expert  laughing

 

historically our application INI file for connection would be as thus

and this still works fine on my desktop version of the application and from the powerbuilder environment itself.

[power]
DBMS='SNC'
Database='NbrPower'
Servername='wn000044139'
LogPassword=xxxxxxxxxxx
DBParm= "ProviderString='MARS Connection=false', trimspaces=1, RecheckRows=1"
logid=powerappuser
SQLCA.AutoCommit=false
LOGONMETHOD = 'NoPassword'
PBSupportBindSelect='NO'
PBSupportBindUpdate='NO'
PBSupportDBBind='NO'
"

however this is not working for the SQL 2019 server

we have also tried MSOLEDB as thus, this did not work, as database connection was never made



[power]
DBMS='MSOLEDBSQL'
Database='NbrPower'
Servername='44139'
LogPassword=xxxxxxxxxxx
DBParm= "TrustedConnection=1,ProviderString='MARS Connection=false', trimspaces=1, RecheckRows=1"
LOGONMETHOD = 'NoPassword'
logid=powerappuser
SQLCA.AutoCommit=false
PBSupportBindSelect='NO'
PBSupportBindUpdate='NO'
PBSupportDBBind='NO'
"

and we have tried ODBC like this

which has worked, almost, users can make connections but a user cannot have two instances of the application open at once, as they have using SNC, which is a requirement.


[power]
DBMS='ODBC'
Database=NbrPower
LogPass =xxxxxxxxxx
LogId ="powerappuser"
ServerName='44139'
AutoCommit=False
DBParm=ConnectString='DSN=Powerdev;UID=powerappuser;PWD=xxxxxxxxxx;TrustedConnection=1,ProviderString='MARS Connection=false''

 

 

we have on the citrix server installed OLE for SQL Server 19.0 and trusted connection is set to true

also the odbc connection is correct and tested

Citrix team and DQL DBA have confirmed correct ports are open and nothing is being blocked on either end.

firewall team has ensured this is open as well

 

thanks for any insight

Randy

mike S Accepted Answer Pending Moderation
  1. Thursday, 21 April 2022 03:00 AM UTC
  2. PowerBuilder
  3. # 1

if your pb application is 32 bit, then you must install 32 bit sql server drivers.  

what is the error message you are getting from your application that leads you to believe it is a driver issue?

 

i notice that you did not specify an instance name as part of the server name.  did your dba setup the database server to only use the standard sql server port (1422), or is it using the default which means you probably need to use the instance name and the port can change.

 

Comment
  1. Randy Zaffke
  2. Friday, 22 April 2022 20:28 PM UTC
HI Mike

we are using port 1422, it is verified open as well

the error I am getting is the application cannot connect to the database

sqlca.of_Connect() = -1



thanks for the thoughts
  1. Helpful
  1. mike S
  2. Friday, 22 April 2022 22:00 PM UTC
if you can't get to the sql server, then there is a firewall preventing access, or you have the wrong server name . or the system doesn't know which database instance to connect to. have your dba force only 1 instance and only to use 1422
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 22:38 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Randy - 

Has MS SQL Native Client Interface 11 been installed on the Citrix server? This is a Microsoft installation package (not Appeon).

Here is a link to the download web page:

https://www.microsoft.com/en-us/download/details.aspx?id=50402

Regards, John

Comment
  1. Randy Zaffke
  2. Friday, 22 April 2022 20:21 PM UTC
hi john, yes we do have client 11, we started using that when we started with sql 2012, thanks for the suggestion :)
  1. Helpful
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.