Home > database >  PB how to connect to the database so many mistakes, please answer
PB how to connect to the database so many mistakes, please answer

Time:09-17

CodePudding user response:

This is obviously PBscript syntax errors,
Help seeing how PB version,

CodePudding user response:

C0031 is line number
Syntax error is grammar mistake

If conditions Then
If, and then is in a line of

To learn the first book

CodePudding user response:

With Data Base Profile Setup in Preview code better.

CodePudding user response:

The third line error
 SQLCA. Dbparm=Is_datbase + "UID=" DBA; The PWD=SQL "

Instead of
 SQLCA. Dbparm=Is_datbase + "UID=DBA; The PWD=SQL "

CodePudding user response:

refer to the second floor zhangyangziwo response:
C0031 is line number
Syntax error is grammar mistake

If conditions Then
If, and then is in a line of

To learn the first book
thank you

CodePudding user response:

Writing is not easy to understand because there are single quotes, branch,
 
The SQLCA. Dbparm="ConnectString='DSN=XXX; UID=XXX; The PWD=XXX; '
"

CodePudding user response:

Ha ha, quotes didn't understand, ha ha

CodePudding user response:

Are some very basic mistakes

CodePudding user response:

Ha ha, program written by a little corners, but is a courseware application can understand,

CodePudding user response:

The
refer to the original poster smllpang response:


Then with the if one line

The dba and SQL variable too defined, should be

The SQLCA. Dbparm=is_datbase + "UID=DBA; The PWD=SQL"
  • Related