retry ODBC connection

wxdqz

New Member
I guess it should be easy in someways to
solve this problem but I just cannot
figure out how to properly do it.

I have a PHP script (run by cron) that setup
a connection to SQL SERVER (on a Windows box)
via ODBC for update operations with data retrieved first from a MySQL database.
When knowing that some problems might occur while the script is trying to establish
the connection to MSSQL, how to code the script in order to have it retry some time
later ? Must have something to do with script timeout..is it?

Thanks in advance, Cheng
 
Back
Top