
Using the Tab navigation feature from ApexSQL Complete, a free add-in for SSMS and Visual Studio, all scripts can be retained in any of the aforementioned scenarios e.g. Retrieve unsaved SQL query scripts/files with the Tab navigation option This will provide the list of all executed scripts on the server that was executed in the last 24 hours.


dm_exec_query_stats AS execqueryĬROSS APPLY sys.
