Here is the quick script I use find last backup time for all the database in my server instance.
SQL SERVER – Find Total Number of Transactions on Interval
In one of my recent Performance Tuning assignment I was asked how do someone know how many transactions are happening on server during certain interval. I had handy script for the same. Following script displays transactions happened on server at the interval of one minute. You can change the WAITFOR DELAY to any other interval and it should work.
SQL SERVER – Find Queries using Parallelism from Cached Plan
SQL SERVER – Index Levels, Page Count, Record Count and DMV –Â sys.dm_db_index_physical_stats
SQL SERVER – Data Pages in Buffer Pool – Data Stored in Memory Cache
SQL SERVER – List All the DMV and DMF on Server
“How many DMV and DVF are there in SQL Server 2008?” – this question was asked to me in one of the recent SQL Server Training.
SQL SERVER – Find Most Expensive Queries Using DMV
The title of this post is what I can express here for this quick blog post. I was asked in recent query tuning consultation project, if I can share my script which I use to figure out which is the most expensive queries are running on SQL Server. This script is very basic and very simple, there are many different versions are available online. This basic script does do the job which I expect to do – find out the most expensive queries in SQL Server Box.