Visual Studio | No source code available for the current location

Visual Studio 2005 / 2008

Whilst trying to debug a Stored Procedure, the following error prompted:

There is no source code available for the current location

First you have to make sure that the current user is part of the ‘sysadmin’ Server role (click here for how to).

  • Next go to Visual Studio
  • Load the server explorer (CTRL+ALT+S)
  • Right Click on the database where the stored procedure is found
  • Click ‘Allow SQL/CLR Debugging’
  • Close Visual Studio and Start it again

You should now be able to debug Stored Procedures from Visual Studio.

PS. To Debug an SP, right click on it, and select ‘Step Into Stored Procedure’.


No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *