I had to accidentally update all the records in the production table several times. Lack of attention and more ...
I heard in MySQL that this is a compile / start time switch to prevent such crashes. For example, if I did
UPDATE Table SET Field=0
this will not compile / execute due to a missing WHERE clause. And if you really wanted to update everything, you could
UPDATE Table SET Field=0 WHERE 42=42
Any ideas for MS SQL?
I found several answers on the Internet, citing a trigger. I think that would be a little expensive. And that would mean that I have to put a trigger on every needed table.
source
share