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
  • Page 3
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
Starting SQL Server Database Administration Classes from May 2018
Posted inTSQL

Starting SQL Server Database Administration Classes from May 2018

Hi Friends, I have finally decided to go with another batch for SQL Server Database Administration from May 2018. This would be 4-month course for 5 days per week with…
Posted by Ajay Dwivedi April 20, 2018
SQL Server – Stop Agent Job After Threshold Time and Log the Query Metrics
Posted inHealth Check TSQL

SQL Server – Stop Agent Job After Threshold Time and Log the Query Metrics

Being a DBA, I know the pain of a long running job creating performance issues for other jobs and user sessions. For my current organization, I have created below TSQL…
Posted by Ajay Dwivedi April 19, 2018
SQL Server – Get Database Backup History for Crash Recovery
Posted inTSQL

SQL Server – Get Database Backup History for Crash Recovery

It is not easy to find out right backups for restore activity when people are watching you during database crash situation. So I have created below TSQL script that would…
Posted by Ajay Dwivedi April 18, 2018
Error/Fix: Cannot resolve the collation conflict between “Latin1_General_CI_AS” and “SQL_Latin1_General_CP1_CI_AS” in the equal to operation
Posted inErrors TSQL

Error/Fix: Cannot resolve the collation conflict between “Latin1_General_CI_AS” and “SQL_Latin1_General_CP1_CI_AS” in the equal to operation

Recently I was working on a SQL query in my inventory database, and was greeted with below error message:- Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the…
Posted by Ajay Dwivedi April 15, 2018
Script-SQLDatabaseRestore cmdlet in SQLDBATools Module
Posted inTSQL

Script-SQLDatabaseRestore cmdlet in SQLDBATools Module

Restoring multiple databases can be painful especially when each of them have multiple database file(s). Four years back, I wrote TSQL script that would accept database backup path, and result…
Posted by Ajay Dwivedi April 14, 2018
What’s Running – Find All Details of Running Queries
Posted inExecution Plan Health Check Performance Tuning

What’s Running – Find All Details of Running Queries

I often see DBAs/developer struggling to find what's wrong with query. The first step in troubleshooting queries is finding out information like batch text, query text, batch execution plan, individual…
Posted by Ajay Dwivedi March 30, 2018
[usp_AnalyzeSpaceCapacity] – SQL Server Space Management Made Easy
Posted inTSQL

[usp_AnalyzeSpaceCapacity] – SQL Server Space Management Made Easy

DBAs! We all know the pain of creating new data or log files at new location when files on old location are about to full. Post that we have to…
Posted by Ajay Dwivedi March 24, 2018
Common Myth: Loop is Always Faster than Cursor
Posted inPerformance Tuning TSQL

Common Myth: Loop is Always Faster than Cursor

From past few weeks, I have been taking interview for Sr. SQL DBA position in my team. What I found is, even candidates saying that they have expertise in Performance…
Posted by Ajay Dwivedi July 22, 2017
Help on Apply-FirstResponderKit
Posted inPerformance Tuning Powershell TSQL

Deploy SQL-Server-First-Responder-Kit with Powershell

There are many tools in market that can help you troubleshoot in specific situations. My personal favorite for finding out issue with SQL Server is SQL-Server-First-Responder-Kit created by Brent Ozar…
Posted by Ajay Dwivedi July 19, 2017

Posts pagination

Previous page 1 2 3 4 5 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