Open SQL Repair tool, then click on the Open option, after that click on browse and select the MDF file which you want to fix.
After selecting corrupt files, Click on OK to proceed.
Now, select recovery options: Standard & Advanced. And, then check either Auto Detect or Manual. Click on OK to start scanning.
Wait for scanning completion.
Scanning is completed, now click on OK.
In a tree structure format preview of fixed file is available, check it by expanding the folders. After that choose database objects which you want to save, then Click on Save.
Save it either as SQL server database or SQL Server Compatible script. In case you opt for second option, then define a location also. Click on OK to begin.
Saving Process is going on.
Saving is done. Click on Ok to exit.