There are many variants to help you. One of it SQL Server Management Studio.

Another one of repair mdf, I applied it only in emergency cases, I hope guide will help you, if not, see this instrument. I found it immediately in Google, probably it is the best in this sphere.

Start SQL Server Management Studio

Click the “Start” button. Move the mouse cursor to the “All Programs” menu, then...