Solved

SQL query

Posted on 2013-12-10
5
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Ephraim Wangoya
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

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.
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

707 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