Here's a script (written in WiseScript) that checks to see if OSQL exists on a PC. If the script finds OSQL, it retrieves file pathname. The script can be used to find OSQL and to run SQL statements using the OSQL engine. You can learn more about OSQL here.