T-SQL debugging was reintroduced in SSMS in SQL Server 2008. To debug in SQL Server 2005, you need to leverage Visual Studio:
http://msdn.microsoft.com/en-us/library/ms241871(v=VS.80).aspx
Thanks,
Sam Lester (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading
the thread.