Debugging a local SQL Server 2008 stored proceedure from Visual studio 2008
Posted
by Ricibob
on Stack Overflow
See other posts from Stack Overflow
or by Ricibob
Published on 2010-04-21T19:18:33Z
Indexed on
2010/04/21
19:23 UTC
Read the original article
Hit count: 157
Hi all, There are a few posts about this question around but most concern remote debugging - here everything is on same machine. Visual studio 2008. I have a data connection to localhost SQL Server 2008 using Windows authentication with an admin account - this account is a member of sysadmin in SQL server. I double click stored proc and add a break point. I right click and select "Step into stored proceedure". I get the loathed and feared "Canceled by user." in output window.
Does anyone know whats doing?
Further - right clicking on the data connection shows both "Application debugging" and "Allow SQL/CLR Debugging". I have checked "Enable SQL Server debugging" on the properties of the C# client app. If run that in debug and try to step in to stored proc code "command.ExecuteNonQuery()" then the break points in the stored proc become disabled and are not pulled. After doing this once the right click on stored proc "Execute" and "Step into stored proceedure" are greyed/disabled. To get them back I have to restart visual studio (refresh connection doesn't do it). Any help much appreciated!! Cheers.
© Stack Overflow or respective owner