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
Gouache painting of an overflowing mailbox on a country lane with a red wheelbarrow waiting to carry away the old parcels

How to Remove Database Mail History and Stop msdb Growing

November 25, 2016
Pinal Dave
SQL Tips and Tricks
Database Mail, SQL Scripts, SQL Server, System Database

Database Mail history stays in msdb until you delete it, so the sysmail tables can grow for years. This post measures the tables, then removes the history with the two supported procedures instead of direct deletes. It also covers a month by month loop for a big backlog and a schedule.

Read More
A letter slot in a wall sealed over with a riveted metal plate, the paint around it older than the plate.

SQL SERVER – Database Mail Breaks with TLS 1.0 Disabled Discovery – Notes from the Field #128

June 16, 2016
Pinal Dave
SQL Tips and Tricks
Database Mail, Notes from the Field, SQL Error Messages

Ryan Adams sent a test email and it never arrived. He explains why Database Mail breaks when TLS 1.0 is disabled and how he tracked down the cause.

Read More
A red windsock stretched straight in a strong wind as a dark storm builds over sunny hills

SQL Agent Alerts for Severity 17 to 25 and Errors 823, 824, 825

January 20, 2015
Pinal Dave
SQL Tips and Tricks
Database Corruption, Database Mail, DBA, SQL Error Messages, SQL Server Agent

Configure Agent alerts for serious severities and errors 823, 824 and 825, connect an operator to Database Mail, and test response delays.

Read More
A cannoli forming tube beside a filled pastry shell and an empty matching shell

Sending an HTML Table by Email With sp_send_dbmail

March 5, 2014
Pinal Dave
SQL Tips and Tricks
Database Mail, HTML, SQL XML

Turn a wall of report text into a clean table. FOR XML PATH escapes your data, and a few small tricks handle NULL values and empty days.

Read More
A red kettle whistling on the stove while someone in the next room turns to it

Sending a Microsoft Teams Alert From a SQL Server Agent Job

June 5, 2009
Pinal Dave
SQL Tips and Tricks
Database Mail, DBA, PowerShell, SQL Server Agent

Send a Teams alert from a failed SQL Server Agent job with a Workflows webhook, PowerShell, SQL Server 2025 REST calls, and mail fallback.

Read More
A wrapped parcel waits safely in a receiving cubby beside a prepared delivery shelf.

SQL SERVER – Introduction to Service Broker

July 18, 2008
Pinal Dave
SQL Tips and Tricks
Database Mail, Service Broker, SQL Server

Service Broker supports transactional asynchronous messaging within SQL Server. I separate queued work from the application that processes it.

Read More
Hands releasing a carrier pigeon from a rooftop loft at dawn, with a distant empty loft waiting across the roofs

Setting Up Database Mail for Alerts

December 24, 2007
Pinal Dave
SQL Tips and Tricks
Database Mail, DBA, SQL Server Agent, SQL Server Configuration

Setting up Database Mail for alerts means creating an account and profile, testing delivery, linking Agent, and checking the queue when mail stops.

Read More
Previous 1 2 3 Next
  • Books
  • Testimonials
  • Privacy Policy

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