• Thanks for the response.

    The problem is fixed. as the .mdf and .ldf files where on different drives

    it was giving some wierd error so i attached only mdf files and the server created .ldf files on the same drive as mdf. this way i could attach it but then i took the db offline copied the log from D:\ to E:\ and then brought the db online. it worked.

    thanks a ton for the responses.