Hi Jeff,
A bit of a contrast, but the code below works for me
Bill
this.udb = LOWER(TRIM(cMySQLdb)) && MySQL database,
e.g. h2offi5_okla49873
this.cConstr = "DRIVER={MySQL ODBC 3.51
Driver};SERVER="+this.cserv+";UID="+this.uid+";PWD="+this.upw+";DATABASE="+t
his.udb+";OPTION=3"
This.nConnectionHandle = SQLStringConnect(this.cConstr, .T.) &&
tested and works okay
if This.nConnectionHandle < 0
&& an error has occurred
AError(gaError)
MessageBox("Could not connect to "+this.udb+" on the MySQL Server. Error
message returned is: " + Chr(13)+CHR(13)+ ;
gaError[1,2], 16, "Connect_InMotion")
IF ATC("and no default driver specified",gaError[1,2]) <> 0
q_ans =MESSAGEBOX("Please see the 'How to install the MySQL ODBC driver'
topic in the Customer Guide"+CHR(13)+CHR(13)+ ;
"Would you like to view this topic now?",4,m_product)
IF q_ans = 6
* launch the topic
go_lmutils.gourl("http://www.h2officesolutions.com/h2os_custguide/How_to_ins
tall_the_MySQL_ODBC_driver.htm")
endif
ENDIF
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.