Patrick Steele's .NET Blog

Implements ICodeWithDotNet

  • Taking the plunge!

    Tomorrow begins my final week as a W2 employee. As of Monday, February 27th I become an independent contractor!

  • xp_sprintf: Important Safety Tip

    While doing some T-SQL coding today against a SQL2K server I noticed a very frustrating issue: The xp_sprintf system stored procedure fails if the variable you send it to receive the formatted string is not long enough to hold the entire string. However, it doesn't tell you it fails. It just sets the string to a NULL and returns zero (Success). The @@ERROR server variable is also zero.

  • You call that support?

    Why does this happen? I spend at least two hours reducing a problem in some company's reporting engine down to a very manageable piece of sample code that can be run by anyone -- no database connection required (everything is done from XML datasets that are embedded in the sample). It's easy. It reproduces the problem. It's a great starting point for tech support.

  • Take the GANG Survey!

    If you're in the Detroit, Michigan area, please take a moment and fill out a survey created by our local .NET user group. We (the board members of GANG) want to know what's working, what isn't working and any ideas you may have for change. Even if you don't currently attend the meetings, please fill the survey out and let us know why. Thanks!

  • September GANG Meeting

    If you're in the southeast Michigan area you'll want to make sure you come to the GANG meeting on September 21st. Not only do we have a couple of great speakers (Josh Holmes and Tim Landgrave) talking about a hot topic (web services), but we've got a free copy of Visual Studio 2003 we're giving away! Everyone that shows up gets a chance to win. And if you bring a friend you'll double your chances! Don't miss it.

  • Value types and Nothing

    A while back I blogged about some interesting IL generated by the VB.NET compiler. Basically, VB.NET allows you to set a value type to Nothing and the resulting IL seems overkill. Today, while I was googling for something .NET related I found Dan McKinley's blog. Earlier this year he had blogged about this very same thing and got a comment from Paul Vick (Technical Lead on VB.NET @ Microsoft) that this was actually a bug in the VB.NET compiler that has been fixed in VB 2005. Good to know!