Re: T-SQL Debugger Error



"Rahul" <verma.career@xxxxxxxxx> wrote in message
news:1177496846.397898.39610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.


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.)



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




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


.



Relevant Pages

  • Re: Windows Power User SQL
    ... The guest user must have connect permission in master and tempdb. ... When I run from the master database for example testing against user bill ...
    (microsoft.public.sqlserver.security)
  • RE: Security context of stored procedure
    ... Suppose there are three users in a database TEST_CHAIN, ... simple stored procedure: ... also grant it to test_sp2 ... SELECT permission denied on object 'authors', database 'test_chain', owner ...
    (microsoft.public.sqlserver.security)
  • Re: GRANT BACKUP DATABASE
    ... I grant to one user the permission to backup one database but now i cant ...
    (microsoft.public.sqlserver.server)
  • Re: SQL2005 grant user access to certain tables
    ... Then for each table that the user needs to read, give SELECT permission to ... Most good judgment comes from experience. ... We have a database on SQL2005 with 50 tables. ... We want to grant someone read table rights to only some tables. ...
    (microsoft.public.sqlserver.security)
  • Re: Security context of stored procedure
    ... It seems that cross database tables are completely blocked from stored ... > grant exec ... > simple stored procedure: ... SQL Server will not check the permission of the ...
    (microsoft.public.sqlserver.security)