View Single Post
Old 03-21-2005, 11:55 AM   #20 (permalink)
asshopo
Insane
 
Location: Michigan
I've done things like that... the rush of "omg, wtf did I just do?". I've had co-wokers come to me and say "ya, I did update tblTable set field = 1, then accidently hit the execute button". I write my update/delete statements "update tblTable where 1 = 2" and then do the rest. It has saved my ass so many times .

Then I have done things like:

Code:
 AND SystemGenerated = CASE WHEN @SystemGenerated = 1 THEN 1 ELSE 0 END,
It works, but its totally unnessessary. I'm sure I had something else in mind, but ya, this would have worked just fine:

Code:
 AND SystemGenerated = @SystemGenerated
__________________
Patterns have a habit of repeating themselves.
asshopo is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76