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.
| Author |
Topic |
|
lyxus
Starting Member
4 Posts |
Posted - 2008-11-12 : 19:54:06
|
| Hello folks, I rembmer that i can see the queries that were executes in MSSQL at least the last ones ? Can anyone tell me how to do that ? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
lionofdezert
Aged Yak Warrior
885 Posts |
Posted - 2008-11-13 : 00:43:56
|
| SELECT deqs.last_execution_time AS [Time], dest.TEXT AS [Query] FROM sys.dm_exec_query_stats AS deqs CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest ORDER BY deqs.last_execution_time DESC |
 |
|
|
|
|
|