Find Queries using High CPU

There are times when you would want to know what query in SQL Server may be causing CPU spikes. There are many reason why a query may hit the CPU and the best way to troubleshoot it to: Identify the query that is causing high CPUIdentify the total time taken by query...

read more

How to create lightweight SQL Trace?

There are times when you would want to capture database activity and the most popular tool that database engineers use is SQL Server Profiler. Note: SQL Server profiler has been deprecated and it is recommended to use Extended Events for tracing any database related...

read more

Is PowerShell installed on SQL Server?

Many database related tasks can be automated using PowerShell. This T-SQL script can be used to check the following: Is PowerShell installed on your local SQL Server?Is it enabled for script execution?What is the version of PowerShell installed on your machine? You...

read more