I have a SelectSQLQueryBuilder in which there is a read only text box. the user inputs data and the string is generated!! i have to check whether this string is an SQL statement.
In SQL SERVER MGMT STUDIO, there is a button right next to execute that does that without firing the statement. Any Class in .NET that does so? How can i validate this string !! please help!!
For Transact-SQL, you can look into using TSql100Parser Class.
Also there is a product called General SQL Parser, it’s not free but has been around for awhile.