What is the best way to evaluate a SQL statement in C# to determine if it does more than just select? – Ie- check if values would be changed (insert, update, delete, modify, or drop) if the statement was later executed.
Any ideas as far as out of the box C# dlls/functions i can use, or is this something I should code myself using string-parsing techniques?
Thanks.
I would use db permissions. Create a database user with read-access only and then, any queries that do anything other than SELECT will fail.