SQL Server 2008 事务日志:日期/时间
需要回滚删除查询,因此我正在筛选事务日志,但并不真正知道大多数标头的含义是什么。
对我来说,它看起来像当前 LSN,并且事务 ID 可能是日期或时间,但格式不同?
当前的 LSN 如下所示:00000e46:00000a4d:0002 交易 ID 如下所示: 0000:0000da25
我的想法是错误的吗?如果是这样,有谁知道我如何能够仅使用 SQL Server 查看 sql server 事务日志中的时间/日期。
Need to roll back a delete query, so I'm sifting through the transaction logs without really knowing what the meanings of most of the headers are.
TO ME, it looks like Current LSN, and possibly Transaction ID MIGHT be date or time but in a different format?
The Current LSN looks like this : 00000e46:00000a4d:0002
The Transaction ID looks like this: 0000:0000da25
Would I be wrong in thinking this? If so, does anyone know how I would be able to view the time/date in sql server transaction logs using ONLY SQL Server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要使用 ::fn_dblog
现在,我自己还没有尝试使用它,但是 这里描述了一些用法
You need to use ::fn_dblog
Now, I haven't tried using it myself but some usage is described here
如果您想要一种简单的方法并且不介意付费,可以使用支持 SQL Server 版本 2000、2005、2008、2008 R2 的商业工具:ApexSQL 日志
If you want an easy approach, and don't mind paying, there is a commercial tool supporting SQL Server versions 2000, 2005, 2008, 2008 R2: ApexSQL Log