Restrict SQL 2000 Jobs

  • Is there any way I can RESTRICT my database users access in SQL Server Agent Jobs?

    Thanks.

  • isabel-1114008 (11/19/2009)


    Is there any way I can RESTRICT my database users access in SQL Server Agent Jobs?

    Thanks.

    Let me rephrase this and understand more of your questions, because just jumping on seeing some part of the question and assume the rest is not going to solve purpose.

    You want to restrict your Database Users using the SQL Agent Jobs, in other words database user should not able to access / see /start the SQL Agent Jobs.

    Is that right?


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • Bru Medishetty (11/19/2009)


    isabel-1114008 (11/19/2009)


    Is there any way I can RESTRICT my database users access in SQL Server Agent Jobs?

    Thanks.

    Let me rephrase this and understand more of your questions, because just jumping on seeing some part of the question and assume the rest is not going to solve purpose.

    You want to restrict your Database Users using the SQL Agent Jobs, in other words database user should not able to access / see /start the SQL Agent Jobs.

    Is that right?

    Yes sir. My database users should not be able to add, modify, or delete jobs.

  • Use the script below

    USE [msdb]

    GO

    EXEC sp_addrolemember N'db_denydatareader', N'UserName'

    GO

    USE [msdb]

    GO

    EXEC sp_addrolemember N'db_denydatawriter', N'UserName'

    GO


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

  • thanks bru! you solved my problem!

  • isabel-1114008 (11/19/2009)


    thanks bru! you solved my problem!

    Glad I could help 🙂


    Bru Medishetty

    Blog -- LearnSQLWithBru

    Join on Facebook Page Facebook.comLearnSQLWithBru

    Twitter -- BruMedishetty

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply