Just discovered the resulcodes differ if perform: ---------------------------------------- sqlite3.exe %db% < script.sql
the %errorlevel% is 1 ------------------------ but by ------------------------ sqlite3.exe %db% "UPDATE table SET 'xxxx=yyyy'"; the errorlevel is 19 (correct as by "https://www.sqlite.org/c3ref/c_abort.html") ---------------------------------------------- both command produce same (correct) erromessage: Error: near line 1: UNIQUE constraint failed: table.xxxx Why I got different exitcodes? Is is possible to get proper exitcode if command loaded from script file too? L.