Methods, systems, and media for handling errors in script files
First Claim
1. A method of processing a sequential query language (SQL) script with a command line processor, the method comprising:
- storing an association between an error condition and an error-recovery statement based upon execution of an on-error statement in the SQL script;
determining an occurrence of the error condition, the error condition corresponding to an error message generated by the command line processor in response to the execution of the SQL script;
identifying the association between the error-recovery statement and the error condition; and
executing the error-recovery statement to resolve the occurrence of the error condition.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods, systems, and media are disclosed for handling errors resulting in error messages while executing a script file such as a Sequential Query Language (SQL) script. Embodiments may include one or more databases such as databases interconnected via a network, which include or have the ability to create and/or execute script files with on-error statements. Script files with on-error statements may include an error identifier and a resolution identifier. Each error identifier may identify one or more errors associated with the resolution identifier and the resolution identifier may identify a way to handle the error. Resolution identifiers may provide one or more error-recovery statements, calls for execution of a stored procedure, or other functions to correct, log, or ignore errors and continue or terminate execution of script files. Many embodiments include a command line processor that can recognize and implement the on-error statements.
22 Citations
28 Claims
-
1. A method of processing a sequential query language (SQL) script with a command line processor, the method comprising:
-
storing an association between an error condition and an error-recovery statement based upon execution of an on-error statement in the SQL script;
determining an occurrence of the error condition, the error condition corresponding to an error message generated by the command line processor in response to the execution of the SQL script;
identifying the association between the error-recovery statement and the error condition; and
executing the error-recovery statement to resolve the occurrence of the error condition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A command line processor comprising:
-
an execution module to store an association between an error condition and an error-recovery statement based upon execution of an on-error statement in a script file and to determine an occurrence of the error condition, the error condition corresponding to an error message generated by the command line processor in response to the execution of the script file;
a logic module to identify the association between the error-recovery statement and the error condition for the script file, to select the error-recovery statement based upon the association; and
a processing module to execute the error-recovery statement to resolve the occurrence of the error condition. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A machine-accessible medium containing instructions, which when executed by a machine, cause the machine to perform operations, comprising:
-
storing an association between an error condition and an error-recovery statement based upon execution of an on-error statement in a script file;
determining an occurrence of the error condition, the error condition corresponding to an error message generated by the command line processor in response to the execution of the script file;
identifying the association between the error-recovery statement and the error condition; and
executing the error-recovery statement to resolve the occurrence of the error condition. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22)
-
-
23. An SQL script for handling an error condition, the script comprising:
-
an error condition identifier to identify an error message to be generated by a command line processor in response to an error during execution of the script; and
a resolution identifier to associate the error message with an error-recovery statement, wherein execution of the error-recovery statement is designed to resolve the error condition. - View Dependent Claims (24, 25, 26, 27, 28)
-
Specification