A database server crashed. I was able to get the mdf and the log file and I am trying to mount it on another server. I don\'t have backup as it was a development database.
You can try a workaround. In short:
Edit
As by OP comment note you also can need to rebuild the log (if you lost transactions)
ALTER DATABASE [MyDatabase ] REBUILD LOG ON (NAME=’MyDatabaseLog’,FILENAME=’D:\Microsoft SQL Server\YourDataPath\Data\Logfile.ldf’)
and put the DB in multiple users log (taking the DB off can require you to put it in single use mode)
ALTER DATABASE [nomdb] SET MULTI_USER
For all the gore details you can refer to the Paul Randal Article
(Note in this article the author uses EMERGENCY MODE to (attempt) repair the transaction log)
I already used it with success but depending on the extent of the damage or others details it can be a impossible task. Consider restoring a backup.
Note this stunts are fine in a development server but you really need to plan (and drill) for disaster recovery in a prodution server.
You can use SQL Database Recovery Tool Repairs
I had a database file (Diamond.mdf) which was corrupted and I was not able to attach into SQL Server DB and which contains most of the business data. I was no idea about the error and unable to recover the corrupted DB. I did so many manual mechanism to overcome this issue but unable to do.
Note: This is not free tool.