User SP on Master DB

  • Hi Experts,

    Is there any problem if developers create user SP on master DB??

  • Ratheesh.K.Nair (11/7/2012)


    Hi Experts,

    Is there any problem if developers create user SP on master DB??

    It depends on what you mean by "problem" and what the stored procedure is doing. While it's allowed, it's usually not best practice to create user stored procedures in the master database.

  • The procedure is used to take CPU statistics,backups,update statistics,shrink ,fragmentation etc.

    These procedures i think created by DBAs but extensively used by developers.

  • Ratheesh.K.Nair (11/8/2012)


    The procedure is used to take CPU statistics,backups,update statistics,shrink ,fragmentation etc.

    These procedures i think created by DBAs but extensively used by developers.

    In that case, I would typically create a SQLAdmin or DBA_Admin database and install the stored procedures there. That being said, it doesn't "hurt" to install them in the master database.

Viewing 4 posts - 1 through 3 (of 3 total)

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