Debugging stored procedures, without using SSMS 2008 Debugger, or the Visual Studio debugger (output
        Posted  
        
            by Albert
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Albert
        
        
        
        Published on 2010-05-28T14:45:44Z
        Indexed on 
            2010/05/29
            2:22 UTC
        
        
        Read the original article
        Hit count: 520
        
I have a SQL Server 2005 database with some Stored Procedures (SP) that I would like to debug...essentially I would just like to check variable values at certain points throughout the SP execution.
I have SSMS 2008, but when I try to use the debugger, I get an error that it can't debug SQL Server 2005 databases. And I can't use the Visual Studio debugger (by stepping into the SP via Server Explorer) because Remote Debugging is blocked by our firewall, and I'm rightfully not allowed to touch the firewall.
So my question is how can I check variable values at certain points in the SP execution? Is there some way to output those values somewhere, perhaps along with some text?
© Stack Overflow or respective owner