Exit codes for /execute

When /execute is run through the command-line interface, it returns one of the following exit codes based on the execution result.

Error Code Description Additional Information
0 Success The operation has been completed without errors.
2 CtrlBreak Execution stopped because of a Ctrl-Break.
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 must not appear more than once.
20 Trial expired The trial period has expired, or dbForge Studio for SQL Server has not been activated.
40 Server connection fail Server connection failed.
103 Execution error A script execution error occurred.
105 Resource unavailable A file is missing.