Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in SQL Server 2005 RTM?
Message
From
10/01/2008 23:25:45
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01279775
Message ID:
01281047
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
Well, I don't know about all those errors, but the first one about exclusive access is an easy one ... you've probably still got a Query Window open in Management Studio connected to the database that you're trying to restore. You should be in the something like the master database.

~~Bonnie



>>I think you have to at least choose the last Log backup or both of them, but not only the first one, to get the STOPAT clause generated. At least that's the way it seemed to work for me.
>>
>>However, I still get errors when I try to run it. Not knowing anything about this particular syntax for restoring a database, I can't off the top of my head figure out what's wrong with the generated statements.
>>
>>~~Bonnie
>>
>>
>Hi Bonnie,
>
>I re-tried again and I now got three lines of code the last one with the STOPAT. But pressing Restore produces:
>
>Msg 3101, Level 16, State 1, Line 1
>Exclusive access could not be obtained because the database is in use.
>Msg 3013, Level 16, State 1, Line 1
>RESTORE DATABASE is terminating abnormally.
>Msg 3117, Level 16, State 4, Line 1
>The log or differential backup cannot be restored because no files are ready to rollforward.
>Msg 3013, Level 16, State 1, Line 1
>RESTORE LOG is terminating abnormally.
>Msg 3117, Level 16, State 4, Line 1
>The log or differential backup cannot be restored because no files are ready to rollforward.
>Msg 3013, Level 16, State 1, Line 1
>RESTORE LOG is terminating abnormally.
>
>So, it's not that easy.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform