osql: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/osql - from package: freetds

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/osql - from package: freetds-bin

You may install the required package with command apt-get install {package}
Error in other languages:
osql: bevel nie gevind nie
osql: comandă negăsită
osql: comando não encontrado
osql: commande introuvable
osql: command not found
osql: käsku ei ole
osql: không tìm thấy lệnh
osql: komanda nerasta
osql: Kommando nicht gefunden.
osql: kommandot finns inte
osql: komut yok
osql: nie znaleziono polecenia
osql: níor aimsíodh an t-ordú
osql: no se encontró la orden
osql: no s'ha trobat l'ordre
osql: opdracht niet gevonden
osql: parancs nem található
osql: perintah tidak ditemukan
osql: príkaz nenájdený
osql: příkaz nenalezen
osql: команда не найдена
osql: командата не е открита
osql: 命令找不到
osql: コマンドが見つかりません