This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A bike rack with one long red chain looped through every slot while a cyclist waits with nowhere to park

Counting Locks per Session With sys.dm_tran_locks

September 13, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Transactions

Count locks per session by resource and mode, connect open transactions, and recognize escalation while keeping snapshot limits clear.

Read More
dark theme

SQL SERVER Management Studio 18 – Enable Dark Theme

September 12, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

We are all techies and we love to use a dark theme in our IDEs. I get quite often a question about how to enable dark theme in SQL Server Management Studio.

Read More
Plain parcels waiting above a chute while one parcel rests at the outlet

Database Mail Health Check: Unsent Items and the Event Log

September 11, 2019
Pinal Dave
SQL Tips and Tricks
Comprehensive Database Performance Health Check, Database Mail, System Database, Transaction Log

The alert job succeeded, yet nobody got the email. Here are three read-only checks that show whether Database Mail is really working.

Read More
completion time

SQL SERVER Management Studio – Completion Time in Messages

September 10, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio

When the queries end, we know how long the query ran from the duration of the query but we never know their completion time. 

Read More
Gouache painting of six small tins on a sewing table, three open with buttons and a vermilion magnifying glass in front

Tables Containing a Column: Search by Name in SQL Server

September 9, 2019
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL System Table

To find tables containing a column, search sys.columns by name instead of opening tables one by one. This post searches one database, then every database on the server, and shows why an underscore in the pattern needs brackets. It also compares the data types of related columns.

Read More
Two neighboring boats are held in position by separate ropes

How to Use Multiple Hints Together for a Query? – Interview Question of the Week #241

September 8, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Hint, SQL Joins, SQL Scripts, SQL Server

Question: How to Use Multiple Hints Together for a Query?
Answer: Of course, you can use multiple hints for a query. Here is an example of the same.

Read More
Gouache painting of a garden hose with a kink held by a vermilion clip and a sputtering sprinkler beyond

Query Runs Slow Occasionally: Five Checks to Find Why

September 7, 2019
Pinal Dave
SQL Performance
Maintenance Plan, SQL Lock, SQL Scripts, SQL TempDB, SQL Wait Stats

When a query runs slow occasionally, the cause sits around the query: a lock, a job, a file growth, tempdb or a shortage of worker threads. This post gives one tested T-SQL check for each and a small demo for blocking and file growth. It also says what to do when all five checks find nothing.

Read More
Previous 1 … 146 147 148 149 150 151 152 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com