Posted inErrors TSQL Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer Posted by By Ajay Dwivedi June 28, 2025 Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
Posted inPowershell SQLMonitor TSQL How To Handle Passwords in PowerShell Automation Posted by By Ajay Dwivedi December 17, 2023 This blog describes how to handle passwords when writing PowerShell automation using Credential Manager
Posted inPowershell TSQL Best Practices for Production Grade Code Posted by By Ajay Dwivedi November 8, 2022 How to Write Prod Grade Code
Posted inBaseline-SQL-Server Performance Tuning SQLMonitor TSQL Get Core SQLServer Health Metrics using Dynamic SQL Posted by By Ajay Dwivedi October 11, 2022 Dynamic SQL To Collect Remote SQL Server Health
Posted inBaseline-SQL-Server Health Check Performance Tuning SQLMonitor TSQL Troubleshooting High CPU on SQL Server – Part 2 Posted by By Ajay Dwivedi October 6, 2022 Troubleshoot CPU Issue on SQL Server using SQLMonitor
Posted inErrors TSQL Error/Fix: Msg 924. Get Database Out of Single User Mode Posted by By Ajay Dwivedi September 23, 2022 Losing single_user database connection is painful, and this script helps to regain the database access by getting database back to multi_user mode.
Posted inBaseline-SQL-Server TSQL Time conversion from local to UTC and vice-versa Posted by By Ajay Dwivedi September 6, 2020 Recently I have been working on setting up baselining for my SQL Server lab environment.…
Posted inSQL Alerts TSQL How to Setup Blocking Alerts on SQL Server Posted by By Ajay Dwivedi August 18, 2018 It's very common for Database professionals to experience blocking. Even though blocking is a usual…
Posted inExecution Plan Performance Tuning TSQL Question/Answer – Should I filter the data in Sub Queries?? Posted by By Ajay Dwivedi May 28, 2018 Recently a good friend of mine asked me question whether is there any performance benefit…
Posted inPerformance Tuning TSQL Should we check [context_switches] for SQL Server Query from Performance Point Posted by By Ajay Dwivedi May 27, 2018 Hi Friends. If you are wondering if we should check [context_switches] counter for SQL Server…