Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL connect displays ODBC configuration dialog...

Status
Not open for further replies.

humour

Programmer
Nov 24, 2003
87
Everytime I connect using Powerbuilder to MySQL I get the MySQL odbc configuration dialog.... WHY?? How can I avoid it... I am using the code below. It connects fine but I need to dismiss the ODBC config dialog... (obviously I dont want it showing up)...

SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=mysql1'"

Connect using SQLCA ;
 
Darn After 1.5 hours of looking I found the answer on a Google Groups.... (buried deep)..."no prompt connect option is required" !!!!



SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=mysql1',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top