# Automated blocking and query alerts for Amazon RDS for SQL Server

DevFeed: [Automated blocking and query alerts for Amazon RDS for SQL Server](<https://devfeed.tech/articles/automated-blocking-and-query-alerts-for-amazon-rds-for-sql-server-85606.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/database/automated-blocking-and-query-alerts-for-amazon-rds-for-sql-server/>)

Author: Sreedhar Reddy Bakkireddy

Published: 2026-10-12T16:06:30Z

Content type: tutorial

Language: en

Sources: [AWS Database Blog](<https://devfeed.tech/sources/aws-database-blog.md>)

Topics: [RDS for SQL Server](<https://devfeed.tech/topics/rds-for-sql-server.md>), [database monitoring](<https://devfeed.tech/topics/database-monitoring.md>), [Amazon CloudWatch](<https://devfeed.tech/topics/amazon-cloudwatch.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Amazon EventBridge](<https://devfeed.tech/topics/amazon-eventbridge.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon-ses](<https://devfeed.tech/tags/amazon-ses.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [aws-secrets-manager](<https://devfeed.tech/tags/aws-secrets-manager.md>), [rds-for-sql-server](<https://devfeed.tech/tags/rds-for-sql-server.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

This tutorial builds automated monitoring for blocking chains and long-running queries on Amazon RDS for SQL Server. EventBridge schedules a Lambda function to query SQL Server DMVs, identify root blockers, publish CloudWatch metrics, and send email alerts through Amazon SES. It covers credential storage, monitoring permissions, deployment, and testing. The one-minute polling interval can miss blocking episodes that resolve between checks.

## Source excerpt

Learn how to build automated email alerts for blocking chains and long-running queries on Amazon RDS for SQL Server. This serverless solution uses AWS Lambda, Amazon CloudWatch, and Amazon SES to detect blocking, identify the root blocker, and send HTML email alerts for approximately $2.57 per month.