IP Library Granted Patent US 8,856,166
Granted Patent B2
US 8,856,166 · App. 13/532,325 · Granted Oct 7, 2014

Query validator

Inventors: Gary Machol (Kfar Saba, IL); Guy Rozenwald (Ra'anana, IL)
Assignee: SAP AG
G06F17/3064
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,856,166
App. No.
13/532,325
Granted
Oct 7, 2014
Kind
B2
Abstract

According to some embodiments, a method and apparatus are provided to receive a syntax correct query, analyze the syntax correct query, and output a message associated with the syntax correct query.

Claims (26)

1. A method comprising:

receiving, from a log file, a syntax correct structured query language (“SQL”) based query after the syntax correct SQL based query has been successfully executed;

analyzing, via a processor, the syntax correct SQL based query, wherein analyzing comprises determining potential issues that may cause the syntax correct SQL based query to stop functioning properly based on a list of predetermined known potential issues associated with the syntax correct SQL based query, one of the known potential issues comprising a join between two tables that fails to utilize a field that is found in each table where the field comprises a same name and type or is explicitly defined as a foreign key; and

outputting a message associated with the syntax correct SQL based query, wherein the message comprises a warning.

2. The method of claim 1 , wherein the message further comprises a SQL based query change recommendation.

3. The method of claim 1 , wherein one of the known potential issues comprises a SQL based query that will return too much data.

4. The method of claim 1 , wherein one of the known potential issues comprises a SQL based query that may return potentially wrong data.

5. The method of claim 1 , wherein one of the known potential issues comprises a SQL based query that is susceptible to failure.

6. The method of claim 1 , wherein one of the known potential issues comprises a SQL based query that is susceptible to slow performance.

7. A non-transitory computer-readable medium comprising instructions that when executed by a processor perform a method, the method comprising:

receiving, from a log file, a syntax correct SQL based query after the syntax correct query has been executed;

analyzing, via a processor, the syntax correct SQL based query, wherein analyzing comprises determining potential issues that may cause the syntax correct SQL based query to stop functioning properly based on a list of predetermined known potential issues associated with the syntax correct SQL based query, one of the known potential issues comprising a join between two tables that fails to utilize a field that is found in each table where the field comprises a same name and type or is explicitly defined as a foreign key; and

outputting a message associated with the syntax correct SQL based query, wherein the message comprises a warning.

8. The medium of claim 7 , wherein the message further comprises a SQL based query change recommendation.

9. The medium of claim 7 , wherein one of the known potential issues comprises a SQL based query that will return too much data.

10. The medium of claim 7 , wherein one of the known potential issues comprises a SQL based query that may return potentially wrong data.

11. The medium of claim 7 , wherein one of the known potential issues comprises a SQL based query that is susceptible to failure.

12. The medium of claim 7 , wherein one of the known potential issues comprises a SQL based query that is susceptible to slow performance.

13. An apparatus comprising:

a processor;

a non-transitory computer-readable medium comprising instructions that when executed by the processor perform a method, the method comprising:

receiving, from a log file, a syntax correct SQL based query from a log file or a trace file after the syntax correct SQL based query has been successfully executed;

analyzing the syntax correct query, wherein analyzing comprises determining potential issues that may cause the syntax correct SQL based query to stop functioning properly based on a list of predetermined known potential issues associated with the syntax correct SQL based query, one of the known potential issues comprising a join between two tables that fails to utilize a field that is found in each table where the field comprises a same name and type or is explicitly defined as a foreign key; and

outputting a message associated with the syntax correct SQL based query, wherein the message comprises a warning.

14. The apparatus of claim 13 , wherein the message further comprises a SQL based query change recommendation.

15. The apparatus of claim 13 , wherein one of the known potential issues comprises a SQL based query that will return too much data, a SQL based query that may return potentially wrong data, a SQL based query that is susceptible to failure, or a SQL based query that is susceptible to slow performance.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0223 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 25, 2012
From: MACHOL, GARY; ROZENWALD, GUY
To: SAP AG
Reel/Frame 028438/0277 →
Continuity (1)
Related Publication 20130346435A1 · Dec 26, 2013