the log for database is not available sql 2008
The log for database 'x' is not available. Check the event log for related error messages. Resolve any errors and restart the database.
In this case your SELECT query fire but INSERT- UPDATE or DELETE command not fire on your database and gives this type of error
SOLUATIN:
1.First detach your database
2.and then attach your database
3.Refresh database
Now Your problem is Solved .