Ok, its been a long time since I've seen old-school ASP code (and even longer since I've written any [Thank God] ) which is why yesterdays daily WTF kills me. Not only is the SQL completely jacked up but I can't believe there was a day when I thought it was ok to mix presentation code, VB Script, and T-SQL together!
Damn!