读取Sql Server事务日志 [英] Read Sql Server Transaction Log

查看:134
本文介绍了读取Sql Server事务日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何读取sql server事务日志,我知道使用dbcc命令但行数据是十六进制格式我们如何以文本格式读取它。

How we can read sql server transaction logs,i know using dbcc command but row data is in hex format how we can read it in text format.

推荐答案

为什么不直接阅读SQL Server事务日志中的所有内容,然后将十六进制数据转换为业务层中所需的格式?



在SQL中转换它会很困难和棘手。
Why not just read what all is there in the SQL Server transaction logs and then convert the hex data into desired format in Business layer?

Converting it in SQL would be difficult and tricky.


为了能够获得人类可读的事务日志,你需要使用一些解码事务日志的工具。这是一个交易日志阅读器工具 [ ^ ]可以读取事务日志并向您显示存储在事务日志中的完整信息。



其他选择是尝试使用
To be able get human readable transaction log you need to use some of the tool that decodes transaction log. Here is one transaction log reader tool[^] that can read transaction log and present you complete information stored in transaction log.

Other option is to try with
fn_dblog

,但它也提供十六进制格式的数据,这些数据不是很容易阅读。



无法轻易读取交易日志的原因是因为它并不是真正意义上的,而是为了确保交易的一致性。

but it also gives data in hex format that’s not really easy to read.

The reason transcation log can’t be read easily is because it’s not really meant to be read but to ensure transaction consitancy.


这篇关于读取Sql Server事务日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆