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
»
Restore Database Failed: 'Exclusive access...
14 posts, Page 2 of 2
««
1
2
Restore Database Failed: 'Exclusive access could not be obtained because the database is in use.'
Rate Topic
Display Mode
Topic Options
Author
Message
Jeffrey Williams 3188
Jeffrey Williams 3188
Posted Tuesday, April 05, 2011 7:35 PM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Monday, June 10, 2013 12:13 PM
Points: 4,319,
Visits: 9,217
Grant Fritchey (4/5/2011)
True, but I prefer to not let anyone have privileged access to the server except other DBAs.
Of course, I would prefer that also - but I have various systems where the vendors have setup their applications to use privileged accounts. I don't have a choice...unfortunately.
Jeffrey Williams
Problems are opportunites brilliantly disguised as insurmountable obstacles.
How to post questions to get better answers faster
Managing Transaction Logs
Post #1088989
lembit.kristian
lembit.kristian
Posted Thursday, September 27, 2012 12:28 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, November 19, 2012 3:53 AM
Points: 1,
Visits: 11
In my case: I was logged in to SSMS as 'user_x'. Default database for 'user_x' was 'Test_DB'.
I got same errormessage when I tried to restore in this session 'Test_DB'.
When I logged out as 'user_x' and logged in SSMS as another user (that did not have default database 'Test_DB'), restore was successful.
Post #1365048
SQL-DBA-01
SQL-DBA-01
Posted Thursday, September 27, 2012 12:30 AM
Right there with Babe
Group: General Forum Members
Last Login: Yesterday @ 6:02 AM
Points: 738,
Visits: 1,147
Good.
Thanks.
Post #1365051
Dennis Post
Dennis Post
Posted Thursday, September 27, 2012 4:48 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Today @ 5:52 AM
Points: 109,
Visits: 304
Make sure no other instances of SSMS are open.
If you have multiple tabs open, make sure they are
not
pointing to the DB in question.
You could also try restarting the service.
Any replication going on? Or any other jobs or triggers pointing to your troublesome DB?
For better, quicker answers on T-SQL questions, read Jeff Moden's suggestions.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
"Million-to-one chances crop up nine times out of ten." ― Terry Pratchett, Mort
Post #1365136
« Prev Topic
|
Next Topic »
14 posts, Page 2 of 2
««
1
2
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.