如何将调试器从Management Studio附加到Sql 2008速成版?
请看这里:
How to: Debug Transact-SQL Using the SQL Server Management Studio