Can we restore databases from database other than 'master' database?

  • Hi,

    We have a requirement where we need to restore databases programmatically. For this, we have executed few customized SPs in 'master' database to restore other databases which is definitely a bad idea. One of my colleauge says - The restore database stored procedure will only run on the master database. My question is can we do DB restore from any other DB (other than master) as long as the user has permission to do it? If so, how and what permission needs to be set for the user.

    Thanks

    Naveen

  • This isn't a database level issue, it's a server permissions issue to create a db. The context doesn't, AFAIK, need to be master. I suppose you could restore these from msdb, or model, but you need a context on a new server.

    In a DR situation, you won't have the proc there, unless it's in a backup of master or msdb (or model if you restore that).

    what not have a script that does this, connect to the server (master or msdb) and then start the restores?

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

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