Checkpoint is blocking other processes (background checkpoint)

Hi Experts, I ran SP_Who (since the server is crawling) and saw spid10 (checkpoint) is running in the background, it cannot be killed since it is not a user sp... but nothing else works (tried to do dbcc checktable and is being blocked by that spid10,) all selects from that table timeout as well... how do I fiX

TIA...
sir-robAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
JestersGrindConnect With a Mentor Commented:
There are several events that cause a checkpoint.  One of them is shutting down SQL server.  So, it will try to checkpoint when you restart SQL.  I'm honestly not sure what it will do if it can't checkpoint.  

I just had another thought.  You can manually force a checkpoint by running the CHECKPOINT command.  You might want to try that first.

To answer your question, you shouldn't experience any data loss.  The transactions are stored in the transaction log.  Upon restart SQL will read the transaction log and either rollback the uncommitted transactions or re-execute the committed transactions to get the SQL server back to its original state when it was shutdown.

Greg


0
 
JestersGrindCommented:
You're right.  It cannot be killed.  Your only option may be to stop and start SQL services.  

Greg


0
 
sir-robAuthor Commented:
thanks Greg, do you think since checkpoint is stuck, I am going to have loss of data?
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
sir-robAuthor Commented:
I tried manual checkpoint but it doesn't work... when I check the activity monitor, it shows that spid 10 is blocking it... (which is the same checkpoint when i run sp_who)...

the database is in simple recovery mode, would that still work with restarting the database and reading it off of transaction log?

Regards,
0
 
JestersGrindCommented:
The recovery model doesn't matter at this point.  This is a core function of SQL server to maintain data consistency.  

Greg


0
 
sir-robAuthor Commented:
Ok, I am gonna try and see where It ends up

Thanks for help!
0
 
sir-robAuthor Commented:
Greg, thanks for your help, much appreciated

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.