Home > database > PB login interface database connection problem
PB login interface database connection problem
Time:09-28
With ASA created database The code is as follows: String is_userid is_password, is_database Is_userid=trim (userid) Is_password=trim (password) If is_password="" then The return - 1 End the if The SQLCA. DBMS="ODBM" The SQLCA. The AutoCommit=false Is_database DSN=XSCJ "=" ConnectString=' SQLCA. Dbparm=is_database + is_userid "UID=" + + "; The PWD="+ is_password +" '" Connect using the SQLCA; Return the sqlca. SQLCode
User data sources are XSCJ The runtime emerged: the connection fails SQLSTATE=IM002 [Microsoft] [ODBC driver manager] did not find the data source name and did not specify a default driver
CodePudding user response:
A, you can even in PB database sketchpad? Do you have an ODBC manager or the registry to see 'user data sources are 'Second, drive in the right position, The HKEY_CURRENT_USER \ Software \ ODBC \ ODBC.ini \ XSCJ The Driver under the values of the corresponding Driver address is correct?
Is this two reasons ~ ~
CodePudding user response:
The building Lord will SQLCA. DBMS="ODBM"
Instead of The SQLCA. DBMS="ODBC"
Have a try
CodePudding user response:
In the PB database in the drawing board to use the data source configuration a Profile after the connection is successful, then copy in the Profile attribute of the Preview TAB connection configuration code is used to test program,