Skip to content
Performance Tuning And Infra Automation

I love performance tuning and building automation

  • Home
  • About Me
  • All Articles
  • Contact Me
  • Home
  • Pretty Links
  • Privacy Policy
  • SQL Resources
  • facebook.com
  • twitter.com
  • t.me
  • instagram.com
  • youtube.com
Subscribe

tsql

  • 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

Error/Fix: Cannot Insert Duplicate Key for UPSERT Code in SQLServer
Posted by Ajay Dwivedi June 28, 2025
How to Use Credential Manager for Storing and Retrieving Passwords
Posted inPowershell SQLMonitor TSQL

How To Handle Passwords in PowerShell Automation

This blog describes how to handle passwords when writing PowerShell automation using Credential Manager
Posted by Ajay Dwivedi December 17, 2023
How to Write Prod Grade Code
Posted inPowershell TSQL

Best Practices for Production Grade Code

How to Write Prod Grade Code
Posted by Ajay Dwivedi November 8, 2022
Dynamic SQL To Query Remote Server Health
Posted inBaseline-SQL-Server Performance Tuning SQLMonitor

Get Core SQLServer Health Metrics using Dynamic SQL

Dynamic SQL To Collect Remote SQL Server Health
Posted by Ajay Dwivedi October 11, 2022
Troubleshoot CPU Issue on SQL Server using SQLMonitor
Posted inBaseline-SQL-Server Health Check Performance Tuning

Troubleshooting High CPU on SQL Server – Part 2

Troubleshoot CPU Issue on SQL Server using SQLMonitor
Posted by Ajay Dwivedi October 6, 2022
Msg 924, Level 14, State 1, Line 1
Posted inErrors TSQL

Error/Fix: Msg 924. Get Database Out of Single User Mode

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 by Ajay Dwivedi September 23, 2022
Heavy-SqlServer-Workload-against-StackOverflow-database
Posted inBaseline-SQL-Server TSQL

Time conversion from local to UTC and vice-versa

Recently I have been working on setting up baselining for my SQL Server lab environment. As part of baselining, I capture all the required Perfmon counters both at SQL Server…
Posted by Ajay Dwivedi September 6, 2020
How to Setup Blocking Alerts on SQL Server
Posted inSQL Alerts TSQL

How to Setup Blocking Alerts on SQL Server

It's very common for Database professionals to experience blocking. Even though blocking is a usual activity, it can convert into an issue anytime. And becomes pain point when DBAs are…
Posted by Ajay Dwivedi August 18, 2018
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??

Recently a good friend of mine asked me question whether is there any performance benefit in filtering the data out in subqueries, and then joining them. Well, answer is NO.…
Posted by Ajay Dwivedi May 28, 2018
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

Hi Friends. If you are wondering if we should check [context_switches] counter for SQL Server Queries while performance tuning, then here is the official verdict from Paul Randal. Thanks Friends!…
Posted by Ajay Dwivedi May 27, 2018

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 100 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. Bloghash WordPress Theme
Scroll to Top