用于跟踪SQL版本中的DB更改的一站式查询 [英] All in one query for tracking DB changes in SQL version

查看:74
本文介绍了用于跟踪SQL版本中的DB更改的一站式查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在sql server 2012或任何版本中是否有任何功能,其中我可以在一个查询中跟踪所有数据库活动(DDL和DML)以及其他已修改的人以及何时何地?

我也需要主机名或IP地址。





我尝试过:



我试过以下功能有一些限制

SQL审核(无法跟踪IP)

事件(无法跟踪DML操作)

跟踪(无法跟踪DML操作)

请帮助

Is there any feature in sql server 2012 or in any version , wherein I can track all DB activities(DDL and DML) and others in one single query with who has modified and from where and when?
I need hostname or IP adddress as well.


What I have tried:

I tried below features which has some limitations
SQL Audit(Unable to track IP)
Event(Unable to track DML operations)
Trace(Unable to track DML operations)
Please help

推荐答案

虽然我没有太多使用它,但我认为你可以用SQL Server Profiler开始你的研究 -

https://msdn.microsoft.com/en-us/library/ms181091.aspx [ ^ ]



如果你需要更多细节而不是全部t那么我认为你需要寻找第三方工具。



希望,它有帮助:)
Although I haven't used it much, i think you can start your research with SQL Server Profiler-
https://msdn.microsoft.com/en-us/library/ms181091.aspx[^]

If you need much more details than all these then I think you need to look for third party tool.

Hope, it helps :)


我使用跟踪文件(仅限探查器但查询不是GUI)来获取数据但它不跟踪选择,插入和删除语句。

我知道GUI为你提供了一切,但我不想运行GUI。
I used trace files(which is profiler only but query not GUI) to get data but its not tracking select, insert and delete statements.
I know GUI gives you everything but i dont want to run GUI.


这篇关于用于跟踪SQL版本中的DB更改的一站式查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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