• Ok, I have to be the first one to throw a monkey wrench into the conversation. For full disclosure, I'm not a fulltime DBA. I work in TSQL quite a bit, but also do a lot of work in other application tiers (business logic, ui).

    Don't you think sometimes when getting into one of these situations it's time to step back and decide whether you are using a the wrong tool? (like a hammer when you need a screwdriver). Sometimes when things are this hard it is an indication that maybe the task should be moved to a different application tier. Solving the problem in the wrong place (not saying that's always the case or necessarily the programming case that started this discuss) just for the sake of not letting the computer win may just make the app harder to maintain over time.