all groups > sql server (alternate) > april 2007 >
You're in the

sql server (alternate)

group:

T-SQL Debugger Error


T-SQL Debugger Error Rahul
4/25/2007 3:27:26 AM
sql server (alternate):
Hi,

When I debug our sp by using T-SQL Debugger, I got following error.

Server: Msg 229, Level 14, State 5, Procedure sp_sdidebug, Line 1
[Microsoft][ODBC SQL Server Driver][SQL Server]EXECUTE permission
denied on object 'sp_sdidebug', database 'master', owner 'dbo'.


and when I grant the permission of sp_sdidebug, I got following error.

Server: Msg 4610, Level 16, State 1, Line 1
You can only grant or revoke permissions on objects in the current
database.


I am using following statement to grant the permission.

GRANT EXECUTE
ON sp_sdidebug
TO myuser

Here, I want to clear, myuser is I, which one i log QA.
and myuser has public and dbowner permission

--
Rahul
Re: T-SQL Debugger Error Greg D. Moore (Strider)
4/25/2007 11:57:37 AM
[quoted text, click to view]

Re: T-SQL Debugger Error Greg D. Moore (Strider)
4/25/2007 11:58:58 AM
[quoted text, click to view]

Correct. sp_sdidebug is in the master database and you're most likely in a
different database.

Generally user written stored procs should NOT have their names start with
sp_ because SQL Server handles those a bit differently (including basically
making them "publically" available from the master db.)


[quoted text, click to view]



--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html

AddThis Social Bookmark Button