patindex: 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 Debian possible default full paths are:

/usr/bin/patindex - from package: dist

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