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...
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...
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...
Copying Database using AS COPY OF in SQL Azure
Copying databases from one server to the other has become the easiest with SQL Azure. Now you can copy the database simply using the CREATE DATABASE statement in SQL Azure. CREATE DATABASE command using AS COPY OF in SQL Azure creates a snapshot of the source database...
Recent Comments