In the context of MS SQL Server 2005
Is there a way to stop delete, and update sql statements being executed against the database that don’t have a WHERE clause?
Ideally it would be nice to restrict this ‘blocking’ to a set of users/roles.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simply answered: no.
It is your responsibility to make sure you don’t send those kind of queries. SQL Server cannot “know” or “find out” when a command is truly missing a WHERE clause, or when it really should be executed without any WHERE.