Birch Note 7-Xu SQL Server logging mechanism

Source: Internet
Author: User
1--sqlserver Logging mechanism 2--logging transaction time, but there is no guarantee to record the name of the user initiating the transaction, and not to record the initiator's program name!!! 3 Use AdventureWorks 4 CREATE TABLE A (a INT) 5 go 6 CHECKPOINT  --do a checkpoint to write the data and log to the drive 7 GO 8 BACKUP log AdventureWorks WIT H truncate_only 9 GO11 DBCC log (7,3), INSERT into a VALUES (1) go17 DBCC log (7,3) at @SPID20 SERT into a VALUES (+) go23 DBCC LOG (7,3) UPDATE a SET a=2 WHERE a=10026 GO

Birch Note 7-Xu SQL Server logging mechanism

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.