extremely volatile
I'have tried... without success. Another test:
for %%x in (*.sql) do (
osql -S %SERVER% -U %MYUSER% -P %MYPWD% -b -e -n -i %%x >> %OUTPUTLOG%
echo result: %ErrorLevel% >> %OUTPUTLOG%
)
after the call osql, echo of errorlevel returns 0...