clarionuser
Programmer
I developed an application using Clarion 6.3 and MySql Database Version 5.1 with the ODBC Filedriver.
For a special function I want to disconnect from the MySQL server without closing the application.
I determine the ConnectionID with
myfile{prop: sql} = 'select CONNECTION_ID ()'
and close the connection with a subsequent
myfile {prop: sql} = 'kill' & ConnectionID.
All fine !
Now I would like to establish the connection again later. I thought it is enough if I use open(myfile) , but here comes the message "Sql server has gone away '.
I think there must be something more to be done.
Best Regards
For a special function I want to disconnect from the MySQL server without closing the application.
I determine the ConnectionID with
myfile{prop: sql} = 'select CONNECTION_ID ()'
and close the connection with a subsequent
myfile {prop: sql} = 'kill' & ConnectionID.
All fine !
Now I would like to establish the connection again later. I thought it is enough if I use open(myfile) , but here comes the message "Sql server has gone away '.
I think there must be something more to be done.
Best Regards