Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 SQL Queary

Author  Topic 

gavis
Starting Member

39 Posts

Posted - 2009-09-25 : 07:58:07
hi.

we had a security issue at one of our sites, is it possible to find out what queries were executed.
does SQL store this information?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-09-25 : 08:04:44
No. Not afterwards.
If you have audit enabled on your server, the answer most probably is yes.



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

Kabila
Starting Member

33 Posts

Posted - 2009-09-25 : 08:27:43
It is possible to find the last running query.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-09-25 : 09:21:26
With DBCC INPUTBUFFER it is, if the spid still exists, which is not likely.


N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -