Solved

Checkpoint is blocking other processes (background checkpoint)

Posted on 2009-04-01
7
2,406 Views
Last Modified: 2012-06-21
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...
0
Comment
Question by:sir-rob
  • 4
  • 3
7 Comments
 
LVL 21

Expert Comment

by:JestersGrind
Comment Utility
You're right.  It cannot be killed.  Your only option may be to stop and start SQL services.  

Greg


0
 

Author Comment

by:sir-rob
Comment Utility
thanks Greg, do you think since checkpoint is stuck, I am going to have loss of data?
0
 
LVL 21

Accepted Solution

by:
JestersGrind earned 500 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:sir-rob
Comment Utility
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
 
LVL 21

Expert Comment

by:JestersGrind
Comment Utility
The recovery model doesn't matter at this point.  This is a core function of SQL server to maintain data consistency.  

Greg


0
 

Author Comment

by:sir-rob
Comment Utility
Ok, I am gonna try and see where It ends up

Thanks for help!
0
 

Author Comment

by:sir-rob
Comment Utility
Greg, thanks for your help, much appreciated

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now