Brian Sherwin's Blog

Moving at the Speed of .Net
posts - 98, comments - 62, trackbacks - 30

My Links

News

Twitter












Tag Cloud

Archives

Links

February 2008 Entries

Watch your procedure cache when using parameters
Dan Guzman had an enlightening post on how SQL server caches ad-hoc queries when using inline parameters. Basically the gist is that if your values for any given paramter changes you get variability in you cached procedure. However, if you specify the SqlDbType when adding your parameters, you can avoid this whole problem. Technorati Tags: sql...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, February 21, 2008 5:30 PM | Feedback (0) |

Moving your Log4Net configuration out of web.config with ASP.NET 2.0 web sites.
I was working with log4net recently and had put a lot of the configuration information in the web.config file for an ASP.NET 2.0 web site. Ideally, this was not what I wanted because I want to be able to change the configuration of the log4net without recycling the web application (a side effect of changing the web.config file). After spending a fair amount of time reading out on the web--a lot of people said it can't be done. It took me piecing together multiple settings to finally get this to work....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Friday, February 15, 2008 12:43 PM | Feedback (8) |

What are you really testing?
So I was working today on some code that has a fair amount of automagically generated tests. Now I must first say that generated code is cool, but generated tests...not so much. If you claim tests for code coverage...go for it. If it is about TDD, you can't really "generate" the tests can you. (That would be TGD--test generated development) The tests are supposed to come before the code...OK, that's an argument for another post. The point of this post is that when you are doing tests, you have to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, February 13, 2008 11:05 PM | Feedback (0) |

Does anyone ever wonder if these are related???
Assessing the toll of China's Freak Snowstorms http://www.iht.com/articles... China plans to halt rain for Olympics http://www.latimes.com/news... China 'will stop the rain' for Olympics http://www.news.com.au/merc...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, February 04, 2008 9:34 PM | Feedback (1) |

Powered by: