I have deleted the .ldf file. But after that I am unable to recover database. I have tried to detach and attach database but it is throwing exception.
“The database [dbName] is not accessible. (ObjectExplorer)”
I have also tried to create a new .ldf file with 0 byte size but database recovery fails. There is no backup file for database.
I have gone through a post The database [dbName] is not accessible. (ObjectExplorer) But this is related to permission where as my issue is related to deletion of .ldf file.
I do not need log file. I just want to recover my data. Transaction log is not important for me.
When I deleted .ldf file SQL server was running. I didn't stopped it at that time.Later I had restarted it.