SQL Server 2008事务日志的[RowLog Contents 0] 字段没人能解析出来?

Reading SQL Server's Transaction Log

http://www.sqlservercentral.com/articles/Transaction+Log/71415/

 

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=152870

 

如何查看SQL Server的事务日志 .
分类: sql server 2005 2011-01-12 13:33 19人阅读 评论(0) 收藏 举报
在SQL Server 7.0和SQL Server2000中,可以用下面的命令查看:

DBCC log ( {dbid|dbname}, [, type={0|1|2|3|4}] )
例如:DBCC log (master,0)
    参数:
  Dbid or dbname - 任一数据库的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进制信息

select [RowLog Contents 0] from::fn_dblog (null, null)
where Operation in('LOP_DELETE_ROWS')

posted on 2011-08-26 17:57  BobLiu  阅读(2004)  评论(1)    收藏  举报