Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

In Sql Server Can we recover new log file(.ldf) if we added that after full backup Expand / Collapse
Author
Message
Posted Tuesday, January 11, 2011 5:46 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, April 5, 2012 5:25 AM
Points: 67, Visits: 95
hi ,

i need help regarding one question In Sql Server.

If i take full backup daily,ransaction log backup hourly.

If suppose:
I have taken full backup at 11am
then added new log file(.ldf)
and hourly backup running as usual.
if db crashses then how we recover backup and log file with proper reason Please.

Please do the needful.

regards,
Shikha Srivstava
Post #1045829
Posted Tuesday, January 11, 2011 5:57 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, March 4, 2014 10:03 AM
Points: 1,106, Visits: 1,334
Not sure i understand.
You would need to restore your last full backup (.bak), then re-apply (restore) each log backup (.trn) up until the failure.
If you dont have a log backup from after you added the new ldf file, its gone.

HTH


Adam Zacks

-------------------------------------------

Be Nice, Or Leave
Post #1045836
Posted Tuesday, January 11, 2011 6:01 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:58 PM
Points: 42,466, Visits: 35,532
One question first. Why would you be adding another log file?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1045839
Posted Tuesday, January 11, 2011 9:37 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, April 5, 2012 5:25 AM
Points: 67, Visits: 95
Hi,

There is a need to do the same.
Is this possible to recover the .ldf file in any case.

Regards,
Shikha
Post #1045983
Posted Tuesday, January 11, 2011 12:25 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, July 26, 2014 8:10 PM
Points: 2,826, Visits: 8,463
I would think that the steps of adding a new file (ALTER DATABASE) are captured in the transaction logs and would occur when you restore the transaction logs after first restoring the full ..... I've never tried it though.


Post #1046081
Posted Tuesday, January 11, 2011 12:53 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:30 AM
Points: 211, Visits: 843
I may have misunderstood but...

As stated, as long as you have the full back up and relevant transaction log backup files then I dont think there is any reason why you cant reapply these to go bring the database to the state prior to the point of failure.



'Only he who wanders finds new paths'
Post #1046101
Posted Wednesday, January 12, 2011 12:10 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 31, 2014 4:12 AM
Points: 159, Visits: 489
shikha.in.2 (1/11/2011)


if db crashses then how we recover backup and log file with proper reason Please.


I don;t understand what are you trying to say by this statement..

/* How we recover backup and log file */

Sorry we don;t recover backup and log files..

But yes with your given scenario if i understood it well we can recover your database with no data loss because you did n't metioned any timelines for recovery.

Any Change you make in the database is considered as a transaction and hence it is written in you active transaction log file. So as you mentioned if your log backup are running normally then you can most definitely recovery your database and also all data files and log files will be there...

Going forward pls make sure that you are mentioning your problem more clearily.

I hope the reply will help you..
Post #1046289
Posted Thursday, January 13, 2011 9:34 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, April 5, 2012 5:25 AM
Points: 67, Visits: 95
Hi,

I got my ans and i am going to implement this.

If I get any issue then let you know.

T & R,
Shikha
Post #1047397
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse