james

james

  • NA
  • 2
  • 0

General SQL Parser .NET Component

Sep 16 2005 5:06 AM

http://www.sqlparser.com

General SQL Parser is developed to help people who want to check syntax of SQL statements,
pretty print out SQL statements,and parse SQL statements into a parse tree in their own program.
It provides detail information about a SQL statement such as
statement types (Select, insert, update, delete or create and so on),
what's tables and fields are used in a statement,
and different parts of a SQL statement are also available such as where clause,
group by clause and having clause and so on...

General SQL Parser is designed to deal with SQL statement used by different Database
Such as Oracle,DB2,Informix,Sybase,Postgres,MySQL and so on, and conforms to most of the entry-level SQL99 Standard

Features:

1. Create parser for different databases such as MSSQL,Oracle to deal with different sql dialects.
2. Syntax check, give the error token, position and hint message.
3. Pretty print SQL statements with lots of configurable parameters, make it more readable.
4. Modify all parts of input sql, then rebuild on the fly.
5. Identify various database objects such as table, field, function in sqls.
6. Create different visitors to visit parse tree for any purpose with the full control of all tree nodes.
7. Export parse tree to xml string for further processing.
8. Generate a list of TCustomSqlStatement objects which represent the corresponding SQL statements that have beed parsed.
9. Parser can be instructed to ignore syntax error and continue,Continuously check multiple SQL Statements even if there are syntax errors in some of these statements.