9

I want to debug a stored procedure in SQL Server 2008 r2, but when I debug it, the specific message is displayed.i.e

Failed to start debugger

ADDITIONAL INFORMATION:

The EXECUTE permission was denied on the object 'sp_enable_sql_debug', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476

Please tell me if anybody has some solution, Thanks

1 Answer 1

7

SQL Debugging requires sysadmin permission.

Read more at Error: User Could Not Execute Stored Procedure sp_enable_sql_debug and How to: Set SQL Server Permissions for Debugging

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.