There are several third party tools for debugging T-SQL.
Management Studio for SQL 2008 includes some debugging tools built in.
I generally just use raiserror, select, print, etc., at various points throughout the script in order to get partial or step-by-step results. Works fine for me.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon