Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Can we restore databases from database other...
Can we restore databases from database other than 'master' database?
Rate Topic
Display Mode
Topic Options
Author
Message
naveen_yashman-703166
naveen_yashman-703166
Posted Monday, March 16, 2009 11:29 AM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, March 31, 2011 4:21 PM
Points: 7,
Visits: 18
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
Post #676764
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Monday, March 16, 2009 11:35 AM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 5:09 AM
Points: 31,526,
Visits: 13,864
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?
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #676776
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.