Exit codes used in the command line

Code Description Additional information
0 Success. The operation has been completed without errors.
1 Unhandled exception. Unhandled exception. See the log for more details.
2 Stop execution with Ctrl+Break. Execution was stopped because of Ctrl+Break.
3 Failed. The execution has failed.
10 Command-line usage error. The command line was used incorrectly. For example, an incorrect flag, or incorrect syntax may have been used.
11 Illegal argument duplication. Some arguments may not appear more than once in a command line. For example, /arg2 depends on /arg1 but you have specified /arg2 without specifying /arg1, or /arg2 cannot be used with /arg1, but you have used them both.
20 Trial expired. Your trial period has expired.
40 Server connection fail. Server connection failed.
103 Script executed with errors. The script was executed with errors.
106 I/O error. The Input/Output error.
107 Failed to create report. The report was not created.
109 There are no tSQLt unit tests to run. Unit Test didn’t find any tSQLt unit tests to run.