Possible Duplicate:
How to see query history in SQL Server Management Studio
I want somehow to get the history of the executed queries on SQL Server 2008 R2. Let's say I run the query:
DELETE FROM TABLE
Is it logged somewhere? Can I see the queries that were executed on the server?
I want to check if a stored procedure or any other automated task was executed at a specific time.