Get a list of SQL queries run yesterday:

 Get a list of SQL queries run yesterday:

  1. Queries are saved in the cache via system representations (sys.dm_exec_query_stats, sys.dm_exec_sql_text, and sys.dm_exec_query_plan)
  2. Using SQL Server Profiler
  3. Using Extended Events
  4. Using the Query Store, starting from the 2016 version
  5. Using SQL Complete (SQL Complete\Execution History) in SSMS

 

Comments

Popular posts from this blog

Delete vs Truncate in MySQL and MS SQL Server

What Is SQLite?

The Seven Different Types of Coding Blocks in Java