Permissions for attach and detach

  • SQL 2000

    I have some users that will need to attach and detach databases.  I do not want to give them sysadmin privileges. 

    Does anyone know of a way to give them the ability to attach and detach w/out granting sysadmin?

    Thanks,

    Jeff

     

     


    "Keep Your Stick On the Ice" ..Red Green

  • Only members of the sysadmin and dbcreator fixed server roles can execute sp_attach_db and sysadmin to run sp_detach_db.

    db_backupoperator  can run backup and dbcreator is able to execute restore.

    I suggest you to control how and where the databases are created and database files be located, no users.

  • You may create a SP to perform this. Then grant execute access to the specific users.

    Michael.

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

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