Solved

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

Posted on 2014-12-30
2
440 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 14

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:
ScottPletcher 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now