How can I validate SELECT statements, without executing using .Net and C#?
If the sql is not valid or if the sql is other operation than SELECT (example: alter, insert, delete, ...) I want to return error rows.
This question is very much like: Code to validate SQL Scripts. But I'm not want to accept any sql script. I want to accept only SELECT statements.