Home icon

Building agentic AI patterns with Amazon Bedrock and SQL Server 2025 on Amazon RDS

Database Blog



This article demonstrates how SQL Server 2025 on Amazon RDS can invoke Amazon Bedrock foundation models directly from T-SQL using the new sp_invoke_external_rest_endpoint system stored procedure, eliminating the need for middleware integration layers.

  • SQL Server 2025 enables native HTTPS REST API calls directly from T-SQL stored procedures without Lambda or API Gateway
  • Database Scoped Credentials encrypt API keys at rest, preventing exposure in query text, plan cache, or logs
  • Use cases include real-time support ticket triage, automated performance diagnostics, intelligent alerts, and on-demand query advisors
  • Implementation requires enabling external REST endpoint feature via RDS parameter group and creating secure credentials
  • Production-ready stored procedures demonstrate AI-powered query advisor, wait stats analysis, ticket classification, and event-driven alerts
  • Default 30-second timeout is sufficient for Bedrock responses; consider SQS queuing for high-throughput scenarios

This approach brings AI capabilities directly into database workflows, reducing latency and operational complexity while maintaining security through encrypted credential management.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Apr 29
2026
Building agentic AI for Amazon RDS for SQL Server with Strands and AgentCore
Aug 5
2026
Building and Deploying .NET AI Agents with Amazon Bedrock AgentCore
Jun 1
2026
AgentOps: Operationalize agentic AI at scale with Amazon Bedrock AgentCore
Apr 8
2026
Reduce time-to-market for AI agents using Microsoft SQL Server 2025 and Amazon Bedrock AgentCore

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.