September 30, 2010 at 3:06 am
Hi
Can you give me some through details about commit, checkpoint and truncate in sql server 2005.
September 30, 2010 at 4:12 am
Summarized.
- Commit: Operation that confirms (records) the transaction in log of transaction.
- Chackpoint: Process that generates a marking in log of transaction and transfers the data of the archive of log (LDF) to the data archive (MDF).
- Truncate: Operation that removes the register of a table and does not generate log, different of delete that it generates.
September 30, 2010 at 5:26 am
Google for "RECOVERY MODELS" , there you can find useful information about these three terms.:-)
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
September 30, 2010 at 5:45 am
What are these interview questions? There is some relation between the three, but they're also somewhat different operations. What are you looking for specifically?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 30, 2010 at 5:54 am
doctom22 (9/30/2010)
- Commit: Operation that confirms (records) the transaction in log of transaction.
Kinda, but not quite.
- Chackpoint: Process that generates a marking in log of transaction and transfers the data of the archive of log (LDF) to the data archive (MDF).
Nope.
- Truncate: Operation that removes the register of a table and does not generate log, different of delete that it generates.
Nope.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 30, 2010 at 7:31 am
I want to know what exactly happens internally when these command get executed.
September 30, 2010 at 7:31 am
I want to know what exactly happens internally when these command get executed.
September 30, 2010 at 10:53 am
Exactly as in step by step code walkthrough? Or do you just want a high level overview?
If high level overview:
For commit: http://msdn.microsoft.com/en-us/library/ms190295%28v=SQL.90%29.aspx and http://msdn.microsoft.com/en-us/library/ms175523%28v=SQL.90%29.aspx
For checkpoint, start here: http://sqlinthewild.co.za/index.php/2009/06/26/the-lazy-writer-and-the-checkpoint/
Which truncate are you asking about? truncate table or backup log ... truncate only? (or one of the other occurrences of truncate?)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 30, 2010 at 10:22 pm
Yes Gail, I want high level overview and here I am talking about truncate backup.
October 1, 2010 at 1:56 am
For commit and checkpoint the links I've given you should do. For the last, google "backup log" "truncate only" and I'm sure you'll have more reading than you'll need.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 1, 2010 at 2:43 am
HI Gail
Thanks for your stuffs.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply