My database .mdf file got corrupted and I have no means to get my schema s.I tried with a few soft wares available on the internet but its turns out that all of them being demo versions don't give back the repaired file.Is there any other means by which I can restore my db? I am using MS SQL 2008
|
closed as off topic by gbn, Arvo, Ken White, Luc M, SysDragon 4 hours ago
Questions on Stack Overflow are expected to relate to programming or software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
Go ahead and delete your .ldf file. Then Execute the below scripts.There are three.So choose one according to your condition. -- Method 1
-- Method 2:
Method 2: If one or more log files are missing, they are recreated again. There is one more method which I am demonstrating here but I have not used myself before. According to Book Online, it will work only if there is one log file that is missing. If there are more than one log files involved, all of them are required to undergo the same procedure. -- Method 3:
Source: http://blog.sqlauthority.com/2010/04/26/sql-server-attach-mdf-file-without-ldf-file-in-database/ |
|||||||
|