How the transactions will move to mdf from ldf?

  • 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

  • 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.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • Yes, transaction file means transaction log file.

    Is WLF will come into the picture here ?

    Thank You.

    Regards,
    Raghavender Chavva

  • Yes, transaction file means transaction log file.

    Is WLF will come into the picture here ?

    Thank You.

    Regards,
    Raghavender Chavva

  • Yes, transaction file means transaction log file.

    Is WLF will come into the picture here ?

    What do you mean by WLF?

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • 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

  • 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/

  • could you please explain that question.

    Regards
    venkat

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Hi Raghavender.

    This link will help you :

    You can get some info about Checkpoint , Lazywriter and Write Ahead Logging as well.

    Regards,
    Saravanan

  • 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

  • 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