Web Analytics Made Easy - StatCounter
While loops in sql server 2005