You may use any manual method to repair it but problem is that manual method is very complicate and has very long steps which take much more time to process and sometime in major condition it doesn't work then in this case you should take help of any third party software which are available in huge number on internet.
But I would recommend you to use this SQL database recovery software which can easily resolve all types of corruption issue which you see on top of this post. It is fully capable to restore all the SQL file objects such as tables, views, triggers, stored procedures, constraints, default constraints, indexes, rules, user defined functions & user defined data types.
This software successfully recovers SQL database objects from the corrupt or damaged MDF files and restores them as well. This software is very reliable which allow all users to easily use this software without any technical skill.
Visit here to know more:- http://www.filesrecoverytool.com/sql-database-repair.html