1

I am trying to test some query so i tried running it inside of SQL enterprise manager and i get the following error:

EXECUTE permission denied on object 'sp_enable_sql_debug', database 'mssqlsystemresource', schema 'sys'.

any suggestions?

2 Answers 2

2

You have to be a member of the sysadmin role to run this system stored proc to enable debugging.

This is different to having permissions to run your code which you created in your database

More info from a blog entry from the "CLR Integration team at SQL Server"... Skip to 3rd paragraph if you have short attention span about why sysadmin rights are needed

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

Comments

0

Your case seems to be a simple question of permissions - if you can't even execute your code, you can't debug it.

Once you can execute your code and still run into problems, SQL Server 2008 does offer a T-SQL debugger inside SQL Server Management Studio.

Quite useful if you need to debug complicated T-SQL script batches or stored procs!

Marc

Comments

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.