Solved

SQL query

Posted on 2013-12-10
5
208 Views
Last Modified: 2014-01-26
When we copy the Database Datafiles (after SQL server is shutdown gracefully) from the source to the target DB instance, is there a way we can bring up the DB in the “restoring” state to allow us to apply additional transaction log files?
0
Comment
Question by:jmanishbabu
5 Comments
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 39708340
If you're just copying the database files, I wouldn't do that. Just do a backup and restore.
0
 
LVL 10

Author Comment

by:jmanishbabu
ID: 39708346
Is there any way if the  DB in the “restoring” state to allow us to apply additional transaction log files?
0
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 500 total points
ID: 39708362
Not that I am aware of. When moving db files form one server to another, you either detach a reattach or do a back up and restore. If you back it up, it will commit the transaction logs to the database backup and when you restore it will all be there and it will start creating its own transaction logs as you use it.
0
 
LVL 32

Expert Comment

by:ewangoya
ID: 39708403
Backup and Restore with no recovery. Then you can continue restoring transaction log backups from the source server.
0
 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 39709102
>> copy database files from source to target instance, can we [then] bring up the DB in the “restoring” state? <<

No; there is absolutely no way to do that.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

861 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

23 Experts available now in Live!

Get 1:1 Help Now