- Window key + R and Write: compmgmt.msc

- That will open the Computer Management Console; in the left pane expand tree view from system tools >> local users and groups >> groups. Double click "Administrators" which appears in the right pane, as shown below.

- On double clicking Administrators the following dialog appears, in which you have to add the user name from where you are going to connect to the server using Visual Studio 2010 and want to debug. So to add a user click the add button as shown below.

- After the Add... button is clicked the following dialog appears, in which you give user name and click ok as shown in the dialog box below.

- Now switch to Visual Studio 2010 and open the "Server Explorer" and then click the "connect to database" button as shown below.

- Fill all the information in the "Add connection" dialog. As shown below.

- You can click the "Test connection" button to test the connection as shown below.

- Expand the stored procedure folder under the SQL server name and double click the stored procedure that you want to debug (for example "addimg"). Now double clicking it will result in displaying the script of the stored procedure. Then put the breakpoint in your desired location in the script, as shown below.


- Now right click the same stored procedure and select "Step into Stored procedure" from the context menu which appears on the right click as shown below.

- The "Run stored procedure" dialog will appear in which you need to fill in all the input parameters which are declared when the stored procedure is created.

- Bingo………….Success in debugging the stored procedure

Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

karthi keyanPosted Feb 6, 2015, 12:49 AM
when i execute a , i got error as No Source available,
Former memberPosted Nov 20, 2013, 6:51 AM
when i click F11 button i get unable to start debugging error
somu sssPosted Jul 6, 2012, 2:29 AM
in the fourth step u said give me the username which user name i have to give pls help me or send details to [email protected]
hamida khanamPosted Mar 11, 2011, 3:09 AM
Thanks really good and helpful article.Can you mail me this or place a download link so that i will save it for remembering. Nice effort...........