• Had to change to run in SQL Server 2005. Just changed the initialization of @Loop ,@Qt and Total.

    Nice script. Just want to know Which Language?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]