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 4
Non-Trusted Foreign Keys
Posted inInternals Performance Tuning TSQL

Non – Trusted Foreign Keys in SQL Server

Today, I was working with one user to troubleshoot their query timeout issues. Analyzing wait stats on server, I found 'LCK_M_X' wait to be most prominent wait on server. This…
Posted by Ajay Dwivedi July 17, 2017
Easy Trick to Debug Long TSQL Codes
Posted inErrors TSQL

Easy Trick to Debug Long TSQL Codes

In my previous organization, working as Senior SQL Developer, I was often asked for help by fellow colleagues for identifying issues inside long and complex TSQL codes. Finding issues becomes…
Posted by Ajay Dwivedi May 6, 2017
Create/Restrict Data Files – Automation
Posted inTSQL

Create/Restrict Data Files – Automation

In my organization, as part of our strategy we keep Data files in 2 TB sized Mount Point Volumes named like 'Data','Data01','Data02' etc. on E:\ drive. Similary, for Log files…
Posted by Ajay Dwivedi April 16, 2017
Optimize for TSQL Query Hint
Posted inPerformance Tuning TSQL

Optimize for Value – TSQL Query Hint

Today, I was working on an incident of slow running procedure. Procedure was running fine for most of the parameter values but, was getting stuck for few values. I could…
Posted by Ajay Dwivedi January 3, 2017
How do I verify if my login if set to Non-Expiry [SQL Server]?
Posted inTSQL

How do I verify if my login if set to Non-Expiry [SQL Server]?

Today I was working on multiple access/permission requests of same user on multiple servers. Due to previous poor experience using sql authenticated login set to expiry by DBA, he kept…
Posted by Ajay Dwivedi November 28, 2016
Query Optimization 03 – Users statistics (individual user) [StackOverflow]
Posted inExecution Plan Performance Tuning TSQL

Query Optimization 03 – Users statistics (individual user) [StackOverflow]

Hi Friends, this is my 3rd blog post of series Query Optimization. In last blog post Questions and Answers per Month, we took optimization decision by analyzing warnings suggested by…
Posted by Ajay Dwivedi November 27, 2016
Script to Analyze Mount Point Space & Generate Shrink File Statements
Posted inTSQL

Script to Analyze Mount Point Space & Generate Shrink File Statements

In my organization, we often receive far too many incidents for low free disk space. As part of resolution we have to check for unexpected files/folders on the mount point…
Posted by Ajay Dwivedi November 20, 2016
Performance Tuning With Predicate Logic
Posted inErrors Internals Performance Tuning

Performance Tuning With Predicate Logic

I have often seen Developers write predicate logic without bothering about performance. That works most of the time. But what about queries that return huge data sets? Is there any…
Posted by Ajay Dwivedi October 15, 2016
Cast on variable Scale
Posted inTSQL

Get Decimal Scale Based on Variable Value

In recent past, while designing a report mailer I faced a requirement where I had to convert a float column into DECIMAL with dynamic precision value coming from outside of…
Posted by Ajay Dwivedi October 9, 2016
SSMS Query Shortcuts
Posted inTSQL

Query Shorcuts SQL Server SSMS – Get Max Data Length

There are multiple articles on internet regarding Query Shortcuts in SQL Server Management Studio. So I won't cover details of SSMS Query Shortcuts. But to increase your productivity, I will show…
Posted by Ajay Dwivedi September 30, 2016

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