Solved

TEMPDB got deleted SQL 2012

Posted on 2014-10-06
7
127 Views
Last Modified: 2014-10-08
I just got a frantic call from IT. It appears that someone had gone into a backup program(Backup Exec) and had clicked on what was the 'F' drive, got a prompt about formatting the drive and clicked 'Yes'. The problem was the drive he wanted to format was the 'G' drive, the 'F' drive had all the SQL data including the tempdb. Equally disturbing was the fact that all backups go to the drive he just formatted so there are no backups to restore since they did no cloud backup or even external drive backups. So now they expect me to be a miracle worker and restore the data. My question here is how can I at least recreate the tempdb database so I can get SQL 2012 back up and running?
0
Comment
Question by:rwheeler23
  • 4
  • 2
7 Comments
 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 300 total points
ID: 40364748
You can never recreate tempdb, as it's just a "scratchpad" area.  It's always recreated as an empty db when SQL Server starts up.

*Immediately* quarantine the drive and attempt to run some software on it to recover the files.  If he did a "quick format", most of the data is still actually there, just the directory is overwritten.
0
 

Author Comment

by:rwheeler23
ID: 40364948
They were using something called EasyUS to try to recover the data. If the data can be recovered, someone keeps their job. If not, the most recent updates are a week old and I have a long day ahead of me tomorrow.
0
 
LVL 46

Accepted Solution

by:
Vitor Montalvão earned 200 total points
ID: 40365399
Apart of some software that can recover files if you don't feel comfortable there's also some companies that will do the recovery work but the wise thing to do now it's not touch more in the F: drive.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:rwheeler23
ID: 40365661
They are running EasyUS to try to recover. It has been running for the past 12 hours.
0
 

Author Closing Comment

by:rwheeler23
ID: 40369229
Thanks for offering the advice. The IT staff lives to see another day.
0
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 40369242
Woohoo!  P.S.: You really should strongly consider adding daily backups of all dbs, including system ones, to your processes.
0
 

Author Comment

by:rwheeler23
ID: 40369277
That was my advice to these folks. I told them to at least get an external drive for now but then to look into cloud backup.  I almost passed out when they told me they had no backups! In today's day and age that is unforgivable.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Maintenance Plan 3 29
SQL Server 2008 to SQL Server 2016 Replication 8 53
Minus first query 1 36
today minus 2 years SQL server 2008 2 31
I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

947 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

22 Experts available now in Live!

Get 1:1 Help Now