Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SMO Recover DB

Author  Topic 

MTmace
Starting Member

7 Posts

Posted - 2007-02-02 : 13:27:00
Is there a way to recover the database without defining a device to restore from?

Restore Database TestDB With Recovery

MTmace

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-02-02 : 13:29:20
No, you must provide a file/device.

Tara Kizer
Go to Top of Page

MohammedU
Posting Yak Master

145 Posts

Posted - 2007-02-02 : 20:20:13
When the db is standby mode or not recovered after tlog restore you can run "Restore Database TestDB With Recovery" code to recover the database without using file/device.


MohammedU
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-02-02 : 22:38:47
I stand corrected then.

Tara Kizer
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-02-03 : 03:48:19
Is that the question MTmace was wanting an answer to though? Its rather an obscure point!
Go to Top of Page
   

- Advertisement -