1. Dede Koueviakoe
  2. PowerBuilder
  3. Friday, 22 November 2019 10:41 AM UTC

hello,

with these parameters in my configuration file, I get "login failed for user ..." and sqlstate = 28000 error

 

DBMS = "SNC SQL Native Client(OLE DB)"
ServerName = "server\instance,1522"
LogId = "adm"
LogPass = mst
DBParm = "Provider='SQLNCLI11',Database='REC1',DelimitIdentifier=1,StaticBind=0,DisableBind=0,NCharBind=0"

 

with the same user and password, I can connect to the database from sql server management studio.

can anyone help me out ?

thanks in advance

Dede Koueviakoe Accepted Answer Pending Moderation
  1. Tuesday, 26 November 2019 15:26 PM UTC
  2. PowerBuilder
  3. # 1

Hi all,

there was a ; at the end of the password and PB did not like it ...

it's all settled now.

thanks again

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Friday, 22 November 2019 13:33 PM UTC
  2. PowerBuilder
  3. # 2
  1. Can your PB IDE connect to the database using a DB Profile having EXACT same configuration as your script?
  2. Can you DEBUG - stop at breakpoint IMMEDIATELY after your CONNECT USING SQLCA; -- then compare SQLCA properties to your PB profile for ANY details however minute?
  3. Can you share EXACT error message present in SQLCA.SQLErrText, SQLCA.SQLDBCode, and SQLCA.SQLCode at same breakpoint?
    (leave out any confidential details like user-ID/password by replacing them with *** or similar)

Your app may need other connection config that your IDE but as a start try to get identical config working - then adjust.

Comment
  1. Miguel Leeuwe
  2. Friday, 22 November 2019 15:57 PM UTC
32 vs 64 bit?
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.