2
There is a situation that I believe will be of great importance to me, which is to know the origin of an sql command in SQL SERVER.
Suppose that accidentally a user has executed any command. Then I need to know who executed such a command.
Is there any way to know who was the executor of such a command, the day and time and other information related to the command through sql command only?
By the query log you may be able to know from which machine/ ip came the command ai vc identifies the suspect.
– rray
you can inform me what information I would take from this suspect?
– DiChrist
This may help: http://stackoverflow.com/a/27525859/2236741
– cantoni
I think the same ip, imagine if everyone uses the same admin login ... no use knowing which user was.
– rray
The SQL Server Audit functionality was released in SQL Server 2008. I was interested and was going to do a test, however, the SQL I have here is 2005. More information: http://bradmcgehee.com/2010/03/30/an-introduction-to-sql-server-2008-audit/
– cantoni
I’m looking at this link you sent, it’s exactly what I’m looking for, I just want to understand everything that was answered there.
– DiChrist