Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to debug SQL Server 2005 stored procedures in Visual Studio Team System 2008

I have been trying to debug SQL Server 2005 stored procedures, in Visual Studio Team System 2008.

I connected to the database server and did a right-click "Execute", on the stored procedure. I even tried "Step Into Stored Procedure", with no luck.

alt text
(source: googlepages.com)

The IDE shows it is running, but I can not seem to break or step into the stored procedure.

alt text
(source: googlepages.com)

I have checked the event viewer and there are no logs. There are no output or messages showing where the problem is.

Visual studio contains the following components :-

alt text
(source: googlepages.com)

Loads of forums mention debugging issues, but no simple solution were found.

Am I missing something ? Or does anyone know of a more concise site, that walks through successfull stored procedure debugging ?

like image 582
Ferdeen Avatar asked Mar 06 '09 10:03

Ferdeen


People also ask

How do I debug a stored procedure in SQL Server 2008?

To debugging SP, go to database->Programmability->Stored Procedures-> right click the procedure you want to debug->select Debug Procedure.

How do I enable debugging in SQL Server 2008 r2?

You can start the debugger by either clicking the Debug button on the Query toolbar or by clicking Start Debugging on the Debug menu or pressing ALT+F5.

Can you debug SQL stored procedure?

Press the drop-down arrow on the green arrow button in the Transact-SQL editor toolbar and select Execute with Debugger to execute the query with debugging on. Alternately, you can start debugging from SQL Server Object Explorer.


1 Answers

Check this, specially the remote debugging part: http://www.dbazine.com/sql/sql-articles/cook1

For other general information on debugging sql check http://msdn.microsoft.com/en-us/library/zefbf0t6.aspx

like image 152
eglasius Avatar answered Sep 30 '22 02:09

eglasius