DBCC 查看日志

来源:互联网 发布:图片加文字软件 编辑:程序博客网 时间:2024/06/09 23:56

1.  DBCC LOGINFO


2. DBCC SQLPERF(logspace)

    显示日志空间使用情况


2.  DBCC LOG(<database name>[,{0|1|2|3|4}])

        0 - Basic Log Information (default)
        1 - Lengthy Info
        2 - Very Length Info
        3 - Detailed
        4 - Full

     Example: DBCC log (MY_DB, 4)

     And it displays the following transaction log information:
         Current LSN
         Operation (string starts with LOP_XXXXX)
         Context (string starts with LCX_XXXX)
         Transaction ID
         Tag Bits (Hex)
         Log Record Fixed Length (int)
         Log Record Length (int)
         Previous LSN
         Flag Bits (Hex)
         Description (string)
         Log Record (Hex)

原创粉丝点击