Skip to content
Performance Tuning And Infra Automation

I love performance tuning and building automation

  • Home
  • About Me
  • SQL Resources
  • Privacy Policy
  • Contact Me
  • Home
  • About Me
  • SQL Resources
  • Privacy Policy
  • Contact Me
  • facebook.com
  • twitter.com
  • t.me
  • instagram.com
  • youtube.com
Subscribe
  • Home
  • tsql
Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
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
Read More
How to Use Credential Manager for Storing and Retrieving Passwords
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
Read More
How to Write Prod Grade Code
Posted inPowershell TSQL

Best Practices for Production Grade Code

Posted by By Ajay Dwivedi November 8, 2022
How to Write Prod Grade Code
Read More
Dynamic SQL To Query Remote Server Health
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
Read More
Troubleshoot CPU Issue on SQL Server using SQLMonitor
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
Read More
Msg 924, Level 14, State 1, Line 1
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.
Read More
Heavy-SqlServer-Workload-against-StackOverflow-database
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.…
Read More
How to Setup Blocking Alerts on SQL Server
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…
Read More
Question/Answer – Should I filter the data in Sub Queries??
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…
Read More
Should we check [context_switches] for SQL Server Query from Performance Point
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…
Read More

Posts pagination

1 2 3 4 Next page
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 98 other subscribers
See what other community members think about SQLMonitor.
Recent Posts
  • Get StackOverflow2013 Database for PostgreSQL & SQLServer
  • Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
  • LogRotate Policy For PostgreSQL
  • Run Ansible Playbooks with Github Action
  • SQLServer Gradually Becomes Slow Until Reboot
Facebook With Ajay Dwivedi
Facebook With Ajay Dwivedi

CATEGORIES

  • Ansible 1
  • Baseline-SQL-Server 22
  • Database Administration 11
  • DevOps 1
  • Errors 15
  • Execution Plan 8
  • Growth & Development 2
  • Health Check 8
  • Internals 3
  • Linux 4
  • Performance Tuning 35
  • PostgreSQL 3
  • Powershell 8
  • SQL Alerts 5
  • SQLMonitor 17
  • TSQL 41
Copyright 2025 — Performance Tuning And Infra Automation. All rights reserved. Bloglo WordPress Theme
Scroll to Top