data-recovery

undo changes to a stored procedure

这一生的挚爱 提交于 2019-12-01 09:18:26
I altered a stored procedure and unknowingly overwrote some changes that were made to it by another developer. Is there a way to undo the changes and get the old script back? Unfortunately I do not have a backup of that database, so that option is ruled out. The answer is YES , you can get it back, but it's not easy. All databases log every change made to it. You need to: Shutdown the server (or at least put it into read-only mode) Take a full back up of the server Get a copy of all the db log files going back to before when the accident happened Restore the back up onto another server Using

How can I undelete a file using C#?

守給你的承諾、 提交于 2019-11-29 11:16:23
I'm trying to find some lost .jpg pictures. Here's a .bat file to setup a simplified version of my situation md TestSetup cd TestSetup md a cd a echo "Can we find this later?" > a.abc del a.abc cd.. rd a What code would be needed to open the text file again? I'm actually looking for .jpeg files that were treated in a similar manner More details: I'm trying to recover picture files from a previous one-touch backup where the directories and files have been deleted and everything was saved in the backup with a single character name and every file has the same 3 letter extension. There is a

C# classes to undelete files? [duplicate]

不问归期 提交于 2019-11-28 17:06:38
Possible Duplicate: How do I restore a file from the recycle bin using C#? Recovering deleted file on windows I am working on an application that is intended to recover deleted files from the system(both those from recycle Bin and those already emptied from the recycle bin but still understandable) and formatted drives. I decided on c# as language, but I have trouble finding classes that deal with this problem. Does anyone know any classes/methods for finding deleted files, retrieving them or any tutorials or helps on the matter. I have little experience on the subject so any help would be

Recovering Git repository from objects only

独自空忆成欢 提交于 2019-11-28 10:31:19
I have a Windows box which has taken it into it's head to delete most of a Git repository (must have tripped the Important Work Detector ;). All I have left (that I can find) is the objects. I'm not sure how complete the collection of objects is, either. Is it possible to recover things from just the objects? As far as I can tell, the object tree is intact. All the packs and loose objects are in place; I just don't have the metadata to convince Git. The first thing that I would try is to initialize a new repository with git init . Then I'd copy the objects directory from the dead repository

How can I undelete a file using C#?

江枫思渺然 提交于 2019-11-28 04:42:02
问题 I'm trying to find some lost .jpg pictures. Here's a .bat file to setup a simplified version of my situation md TestSetup cd TestSetup md a cd a echo "Can we find this later?" > a.abc del a.abc cd.. rd a What code would be needed to open the text file again? I'm actually looking for .jpeg files that were treated in a similar manner More details: I'm trying to recover picture files from a previous one-touch backup where the directories and files have been deleted and everything was saved in

Recovering deleted file on windows [closed]

微笑、不失礼 提交于 2019-11-27 19:41:04
问题 I want to write a program to recover recently deleted files on windows 7.. Is there a function in windows API that recover files? If not, how can I begin in that? EDIT: Or an open source project for that? EDIT: I do not mean Recycle Bin!! 回答1: Well the file recovery tools all start by scanning the disk for file headers or for old traces of the file tree. Looking to do this from scratch you need to understand your target drive and its file system. There is no API so to say, though there are

Where does MySQL store database files on Windows and what is the name of the files?

别说谁变了你拦得住时间么 提交于 2019-11-27 11:10:41
So I accidentally formatted my hard drive and re-installed Windows and forgot to backup an important database I had in my MySQL server. I'm trying to salvage files now using some software, but I don't know what to look for. What is the path that the files are stored in, and what are the files named (what naming convention, or file extension should I look for)? I believe my server was using MyISAM, but not 100% sure. Any advice would be appreciated! You can check my.ini file to see where the data folder is located. Usually there is a folder {mysqlDirectory}/data MySQL data storage: Commands.frm

C# classes to undelete files? [duplicate]

北城以北 提交于 2019-11-27 10:11:21
问题 Possible Duplicate: How do I restore a file from the recycle bin using C#? Recovering deleted file on windows I am working on an application that is intended to recover deleted files from the system(both those from recycle Bin and those already emptied from the recycle bin but still understandable) and formatted drives. I decided on c# as language, but I have trouble finding classes that deal with this problem. Does anyone know any classes/methods for finding deleted files, retrieving them or

MySQL tables gone after deleting ibdata1

跟風遠走 提交于 2019-11-27 06:31:47
问题 A couple of days ago I couldn't get mysql to run anymore(xampp) after some googling I found this post: XAMPP - MySQL shutdown unexpectedly It said to remove the ibdata1 file which I did, mysql starts again but the tables of one database are gone, however I can still see the tables that contain values in the data folder(ibd and frm files) is there anyway that I can recover those tables? Thanks. 回答1: The ibdata1 file is important, and normally you should not delete it unless you want to drop

Recovering Git repository from objects only

对着背影说爱祢 提交于 2019-11-27 03:35:38
问题 I have a Windows box which has taken it into it's head to delete most of a Git repository (must have tripped the Important Work Detector ;). All I have left (that I can find) is the objects. I'm not sure how complete the collection of objects is, either. Is it possible to recover things from just the objects? As far as I can tell, the object tree is intact. All the packs and loose objects are in place; I just don't have the metadata to convince Git. 回答1: The first thing that I would try is to