Flow
Flow
TriniTuner.com  |  Latest Event:  

Forums

Any database gurus out there?

this is how we do it.......

Moderator: 3ne2nr Mods

User avatar
stev
TriniTuner 24-7
Posts: 7903
Joined: May 26th, 2010, 11:29 am
Location: Central

Any database gurus out there?

Postby stev » February 29th, 2016, 10:35 pm

having a problem on work where basically our SQL server crashed while it was in use.

I was able to pull the MDF database file off of the server but there is no hope just yet for the LDF log file.

all attempts and ratches made to re-create the log file failed. basically the SQL server was not shutdown properly and there are still 'open connections' to the database.


any ideas from the admins / IT men out there?

User avatar
wagonrunner
TriniTuner 24-7
Posts: 13547
Joined: May 18th, 2004, 9:38 am
Location: Distancing myself from those who want to raid the barn but eh want to plant the corn.
Contact:

Re: Any database gurus out there?

Postby wagonrunner » February 29th, 2016, 11:47 pm

and no backups to another network location, or even volume shadow copy?
http://sqlmag.com/blog/recovering-database-missing-transaction-log

User avatar
kurpal_v2
TriniTuner 24-7
Posts: 11904
Joined: December 28th, 2007, 9:17 pm
Location: Chilling with Akeem

Re: Any database gurus out there?

Postby kurpal_v2 » March 1st, 2016, 12:14 am

Im a self professed shakra guru.




Let me read your grah come, bring datchna 20$

User avatar
stev
TriniTuner 24-7
Posts: 7903
Joined: May 26th, 2010, 11:29 am
Location: Central

Re: Any database gurus out there?

Postby stev » March 1st, 2016, 4:11 am

wagonrunner wrote:and no backups to another network location, or even volume shadow copy?
http://sqlmag.com/blog/recovering-database-missing-transaction-log


:lol: backup u say? well boy, the situation so sad that it almost funny.

User avatar
bluesclues
punchin NOS
Posts: 3600
Joined: December 5th, 2013, 3:35 am

Re: Any database gurus out there?

Postby bluesclues » March 2nd, 2016, 9:10 pm

stev wrote:
wagonrunner wrote:and no backups to another network location, or even volume shadow copy?
http://sqlmag.com/blog/recovering-database-missing-transaction-log


:lol: backup u say? well boy, the situation so sad that it almost funny.


was going to ask you what the company backup schedule was like.. but ok

you will lose some of the data(most recent), but follow these steps and you should be able to rebuild your transaction log and get the database back online.

https://blogs.msdn.microsoft.com/glsmal ... orruption/

when you done i will let you know my consultancy fee from the overtime you going to be working lol

User avatar
TheOwnerPO
Chronic TriniTuner
Posts: 533
Joined: October 11th, 2013, 11:20 pm
Contact:

Re: Any database gurus out there?

Postby TheOwnerPO » March 2nd, 2016, 9:27 pm

ED has a degree in Computing. You can pm him.

User avatar
timelapse
TriniTuner 24-7
Posts: 8788
Joined: June 20th, 2012, 7:13 pm

Re: Any database gurus out there?

Postby timelapse » March 3rd, 2016, 7:24 am

Fix it with a hammer

User avatar
IdleMind2504
Sweet on this forum
Posts: 301
Joined: June 3rd, 2008, 12:08 pm

Re: Any database gurus out there?

Postby IdleMind2504 » March 3rd, 2016, 12:06 pm

check this out --> pretty good step by step post

http://yrushka.com/index.php/sql-server ... -part-3-2/

daxt0r
I LUV THIS PLACE
Posts: 905
Joined: November 5th, 2009, 2:44 pm

Re: Any database gurus out there?

Postby daxt0r » March 3rd, 2016, 4:53 pm

stev wrote:having a problem on work where basically our SQL server crashed while it was in use.

I was able to pull the MDF database file off of the server but there is no hope just yet for the LDF log file.

all attempts and ratches made to re-create the log file failed. basically the SQL server was not shutdown properly and there are still 'open connections' to the database.


any ideas from the admins / IT men out there?


It depends on the configured recovery model set on the DB. Is it simple or full? Because only if in full does the TLOG have the roll forward data in any case.

Even if the LDF is unavailable it would still be possible to recover most of the data on the MDF assuming the problem wasn't due to disk level corruption.

Just attach the DB and do a DBCC CHECKDB after mounting to roll back any uncommitted changes.

Advertisement

Return to “Ole talk and more Ole talk”

Who is online

Users browsing this forum: No registered users and 69 guests