• Stan Hargrove: Thanks for trying out my solution. I don't understand why you had a problem with compilation of the missing Target attribute though. I compiled the code in the article in July 2006 just before publishing it in SqlServerCentral, and it worked just fine. My version is:

    Microsoft Visual Studio 2005

    Version 8.0.50727.42  (RTM.050727-4200)

    Microsoft .NET Framework

    Version 2.0.50727

    Installed Edition: Professional

    Microsoft Visual Basic 2005   77626-009-0000007-41371

    Microsoft Visual Basic 2005

    - The author