I have a SQL Server 2008 database and I have a problem with this database that I don't understand.
The steps that caused the problems are:
- I ran a SQL query to update a table called authors from another table called authorAff
- The authors table is 123,385,300 records and the authorsAff table is 139,036,077
- The query took about 7 days executing but it didn't finish
- I decided to cancel the query to do it another way.
- The connection on which I was running the query disconnected suddenly so the database became in recovery until the query cancels
- The server was shut down many times afterwards because of some electricity problems
- The database took about two days and then recovered.
Now when I run this query
SELECT TOP 1000 * FROM AUTHORS WITH(READUNCOMMITTED)
It executes and returns the results but when I remove WITH(READUNCOMMITTED) hint it gets locked by a process running on the master database that appears only on the Activity Monitor with Command [DB STARTUP] and no results show up. so what is the DB STARTUP command and if it's a problem, how can I solve it?
Thank you in advance.