April 14, 2011 at 9:04 am
Hi All,
Can you please tell me how transactions will commit to mdf from transaction file ? and who will take care of this process?
Thank You.
Regards,
Raghavender Chavva
April 14, 2011 at 9:26 am
I assume by transaction file you mean the log file
Check points are issued by the system. If you want to know more look up checkpoint and lazywriter. It is an automatic process.
April 14, 2011 at 11:04 am
Yes, transaction file means transaction log file.
Is WLF will come into the picture here ?
Thank You.
Regards,
Raghavender Chavva
April 14, 2011 at 11:06 am
Yes, transaction file means transaction log file.
Is WLF will come into the picture here ?
Thank You.
Regards,
Raghavender Chavva
April 14, 2011 at 11:09 am
Yes, transaction file means transaction log file.
Is WLF will come into the picture here ?
What do you mean by WLF?
April 14, 2011 at 2:00 pm
They don't move. Data does not move from the log to the data file.
When a transaction occurs the data page is changed in memory and the log record is written to the log buffer. When the transaction commits, the log buffer is written to disk, to the transaction log (ldf). At some point after that the changed data page is written to the data file.
That's a massive simplification, but it's good enough.
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
April 18, 2011 at 2:58 am
Hi All,
when we do any operation or transaction all are logged into log buffer.when you run the checkpoint save the all data to main database.
Regards
venkat
April 18, 2011 at 5:25 am
kvr1985 (4/18/2011)
Hi All,when we do any operation or transaction all are logged into log buffer.when you run the checkpoint save the all data to main database.
Couldn't understand the question?
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
April 25, 2011 at 3:59 am
could you please explain that question.
Regards
venkat
April 25, 2011 at 4:10 am
If you can clarify what you're asking, maybe. As it is, I don't understand the question.
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
July 24, 2011 at 11:13 pm
July 24, 2011 at 11:58 pm
GilaMonster (4/14/2011)
They don't move. Data does not move from the log to the data file.When a transaction occurs the data page is changed in memory and the log record is written to the log buffer. When the transaction commits, the log buffer is written to disk, to the transaction log (ldf). At some point after that the changed data page is written to the data file.
That's a massive simplification, but it's good enough.
This is a awesome simplication. We could as well save this one for our reference :).
M&M
July 26, 2011 at 12:00 am
Thanks Gila,
Simple enough to understand big process within SQL engine.
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply