validate sql syntax

  • Thread starter Thread starter Jarod_24
  • Start date Start date
J

Jarod_24

How do i check if a sql-string has corect syntax.

With select-statements you can just use a Datareader, since no data is changed in the database, but i'm working with other
statements as well, and need to just verify that the syntax of the string is correct, and determine if it is a select, update,
insert or delete statement.

I've looked but can't seem to find a class that does this.
 
do you use a single method for all types of query?

Jarod_24 said:
How do i check if a sql-string has corect syntax.

With select-statements you can just use a Datareader, since no data is
changed in the database, but i'm working with other
statements as well, and need to just verify that the syntax of the string
is correct, and determine if it is a select, update,
 
Back
Top