Solved

How to attach  the database files to the database with No Recovery Option?

Posted on 2014-12-30
2
549 Views
Last Modified: 2015-04-11
Hi,

Need some expert advice here ....

Are there anyway to attach database files to the database with No Recovery Option?
0
Comment
Question by:Keng0499
2 Comments
 
LVL 15

Expert Comment

by:Vikas Garg
ID: 40523422
Hi,

You can attach you database and then can change the recovery mode to Simple
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 40523872
No, sadly not.  Best would be a backup of the original db rather than individual files.  But that's probably not available and can't be obtained.

If the version you're attaching to is the same as the original db's version, you could try this:

Attach the db, allowing SQL to recover it (since you can't prevent it).  Be sure to use the same name as the original db.

Backup the db.  Drop the db.  Restore the db from the new backup with "NORECOVERY".  Then, still using NORECOVERY, try applying the differential and/or log file(s).

When you've applied all the files, do a final:
RESTORE DATABASE <db_name> WITH RECOVERY

to make the db operational.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question