brianpercival
Programmer
Hi all,
I have an odd problem. I run a scheduled page which reads records from a visual foxpro database table (using odbc dsn) and populates sqlserver table. This page runs every 20 min to keep the sqlserver db table up to date.
Now, every now and then, the reading from the foxpro db fails due to unreliable odbc vfp driver.
I found if I restart the coldfusion odbc server and agent, it starts working fine (some kind of file locking takes place on the foxpro database somehow and when I restart the cf odbc services it works fine.
I have my queries in a cftry, so I know in cfcatch when something fails.
In this cfcatch, I now want to include the code which will basically restart the odbc services. I rightclick->properties on the above services, and know which .exe s are being run. But how do I restart them? I know I have to use cfexecute but what exactly is the command line option to stop/start????
Can someone please help??
regards,
Brian