Sql server 查看事务日志

SELECT   *   From   ::fn_dblog(Default,Default)

DBCC Log(database,type)

     database- 任一数据库的ID或名字

  type - 输出结果的类型:

  0 - 最少信息(operation, context, transaction id)

  1 - 更多信息(plus flags, tags, row length)

  2 - 非常详细的信息(plus object name, index name,page id, slot id)

  3 - 每种操作的全部信息

  4 - 每种操作的全部信息加上该事务的16进制信息

  默认 type = 0

posted @ 2008-06-10 10:35  lzwlfw  阅读(1611)  评论(1)    收藏  举报