SQL Server Database is corrupted Unfortunately hard disk of my system is damaged, now I recovered my database. But it cannot be attached again to SQL management studio 2005.
The error is:

myfile.mdf is not a primary database file. (SQL server , error 5171)
You should restore it from your backup (which you can do by right clicking on "Databases" and selecting restore database)