Re: Execute permission denied on object xp_SQLagent_notify



Thanks a lot. The different ownership was indeed, the problem! I didn't even
think to check the owners for these 2 databases! It seemed so obvious that it
must be sa! That was a rookie's error, I'm sort of embarrassed! Now that I
think about, the msdb was brought from a different machine at some point and
it was probably then when the owner changed.

Once again thanks!
--
Gabriela Nanau
MCDBA


"Dan Guzman" wrote:

To add to Erland's response, you can fix msdb ownership can database options
using the script below.

USE msdb
EXEC sp_changedbowner 'sa'
EXEC sp_dboption 'msdb', 'db chaining', true

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Gabriela Nanau" <Gabriela Nanau@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:36F16EC4-7BFF-421B-B397-2BEB931FF1ED@xxxxxxxxxxxxxxxx
SQL Server 2000, SP4. I have this login MyLogin which has access in both
msdb
and master. The account is public in master and db_owner in msdb. I have
the
same settings on 10 servers. I attempt to create a job, steps and
schedule.
When it comes to msdb.dbo.sp_add_jobserver I got the following messages:

Msg 229, Level 14, State 5, Procedure xp_sqlagent_is_starting, Line 7
EXECUTE permission denied on object 'xp_sqlagent_is_starting', database
'master', owner 'dbo'.
Msg 229, Level 14, State 5, Procedure xp_sqlagent_notify, Line 175
EXECUTE permission denied on object 'xp_sqlagent_notify', database
'master',
owner 'dbo'.

The puzzling part here is that I got the errors on 2 servers out of the 10
above mentioned. On the other 8 the job is created successfully and there
are
no explicit rights granted or denied on these particular XPs.

Question: What are the minimum requirements to execute the above 2 XP?
They
are not documented by Microsoft or it seems I cannot find much on them.
There
is always the possibility to explicitly GRANT access to them for MyLogin,
but
the question remains: why is it working on 8 servers and not working on
the
other 2. Must be some other setting somewhere!

Any answer will be higly appreciated.

.



Relevant Pages

  • RE: Change ownership of model and msdb to sa
    ... My Production's SQL2k MSDB & Model ... database owner is my old NT Domain Administrator. ... Master owner is SA. ... "Rob" wrote: ...
    (microsoft.public.sqlserver.server)
  • Re: Execute permission denied on object xp_SQLagent_notify
    ... you can fix msdb ownership can database options using the script below. ... EXEC sp_dboption 'msdb', 'db chaining', true ... The puzzling part here is that I got the errors on 2 servers out of the 10 ...
    (microsoft.public.sqlserver.security)
  • Re: Execute permission denied on object xp_SQLagent_notify
    ... The account is public in master and db_owner in msdb. ... 'master', owner 'dbo'. ... The puzzling part here is that I got the errors on 2 servers out of the ...
    (microsoft.public.sqlserver.security)
  • Change ownership of model and msdb to sa
    ... The owner of the master, model, or tempdb system databases ... >15109 16 Cannot change the owner of the master database. ... >case 'sa' is not owner of msdb and model? ...
    (microsoft.public.sqlserver.server)
  • RE: Truncated INSERT statements when using sp_generate_inserts by Vyas
    ... SET NOCOUNT ON ... This procedure is also useful to create a database setup, ... ALSO NOTE THAT THIS PROCEDURE IS NOT UPDATED TO WORK WITH NEW DATA TYPES INTRODUCED IN SQL SERVER 2005 / YUKON ... IF @owner IS NULL ...
    (microsoft.public.sqlserver.programming)