March 2012 Entries

Standing to Code

Today I tried a Standing Desk for the day. I've heard about this a number of times, mostly on Twitter. The idea's not new, but it is gaining attention due to the health concerns around so much sitting. I started standing at 7am. It's currently 3pm, and I'm still standing here. So far so good. My muscles are a little tired, but my mind feels more awake than most other days! Another thing I'm noticing is that it's a lot easier to switch gears. If I need to step over for a cup of coffee, I'm already standing....

posted @ Tuesday, March 20, 2012 3:12 PM | Feedback (3)

SqlTransaction Ain't Always Transactional

Q: "SQL run using a SqlTransaction is part of a SQL Server Transaction and can be rolled back." A) True B) False The answer is of course "A", right? That's what I thought too. Basic SqlTransaction Usage Most of us assume that we can write this: using (var con = new SqlConnection("..")) {   con.Open();     using (var tran = con.BeginTransaction())   { ...

posted @ Saturday, March 03, 2012 10:03 PM | Feedback (26)