Mohamed_Baioumy_MSFT

Understanding Azure SQL Long-Term Retention Immutability Configuration with Terraform and AzAPI

Executive Summary Organizations using Azure SQL Database Long-Term Retention (LTR) backup policies may encounter failures when attempting to disable backup immutability while also specifying an immutability mode in the same request. In the investigated scenario, the customer observed that the operation succeeded when performed through ARM templates but failed when executed through Terraform using AzAPI-based […]

Understanding Azure SQL Long-Term Retention Immutability Configuration with Terraform and AzAPI Continue Reading

Understanding Microsoft Entra ID Group Membership Caching and Azure SQL Authentication Timing

Contributor: hudajazmawi​  Executive Summary Organizations frequently use Microsoft Entra ID groups to manage access to Azure SQL databases. This approach simplifies administration, improves security, and supports just-in-time access models. In some scenarios, users may experience temporary authentication failures shortly after being granted access through a Microsoft Entra ID group. These failures can appear inconsistent, especially

Understanding Microsoft Entra ID Group Membership Caching and Azure SQL Authentication Timing Continue Reading

Generic Best Practices for HikariCP with Azure Database for PostgreSQL

Author: Mohamed BaioumyTechnology: Azure Database for PostgreSQL (Flexible Server & Single Server)Category: Connectivity | Performance | Application Design Introduction Connection pooling is a critical component of application performance when connecting to Azure Database for PostgreSQL. Creating a new PostgreSQL connection is an expensive operation that consumes CPU, memory, and networking resources. Reusing existing connections through

Generic Best Practices for HikariCP with Azure Database for PostgreSQL Continue Reading

Azure SQL Database Data Sync Retirement: Migration Scenarios and Recommended Alternatives

Why Azure SQL Data Sync Retirement Matters Azure SQL Data Sync relies on: Triggers Metadata tables Hub-and-spoke topology While functional, this architecture introduces complexity, performance overhead, and operational risks, especially as data volumes and workloads grow. Microsoft’s long-term direction favors scalable, resilient, and observable data integration services, such as Azure Data Factory (ADF) and event-driven

Azure SQL Database Data Sync Retirement: Migration Scenarios and Recommended Alternatives Continue Reading

Azure SQL Database Sharding: How It Works, Why It Matters, and How to Distribute Data Across Shards

What Is Sharding in Azure SQL Database? Sharding is the technique of splitting a large dataset horizontally across multiple independent databases—called shards. Every shard contains the same schema but holds only a subset of the data. This approach allows an application to scale out nearly indefinitely because storage, compute load, and network demand are distributed

Azure SQL Database Sharding: How It Works, Why It Matters, and How to Distribute Data Across Shards Continue Reading

Missing MSchange_tracking_history Table in SQL Server: Causes, Cleanup Behavior

Confirming Whether Auto-Cleanup Has Run Successfully When diagnosing Change Tracking cleanup issues, the first step is verifying whether the auto‑cleanup process has executed at least once on the affected database. Here are key questions to ask: ✔ Was the auto‑cleanup process ever triggered? SQL Server’s CT cleanup runs automatically in the background based on internal

Missing MSchange_tracking_history Table in SQL Server: Causes, Cleanup Behavior Continue Reading

SqlError Number: 3961 Message: Snapshot isolation transaction failed in database ‘DatabaseName’

This error indicates a snapshot isolation conflict caused by concurrent schema changes during Azure SQL Data Sync operations. Here’s the analysis: Root Cause The sync process uses snapshot isolation to enumerate changes. While the sync transaction was running, a DDL statement (e.g., ALTER TABLE, CREATE INDEX, or similar) modified the metadata of an object accessed

SqlError Number: 3961 Message: Snapshot isolation transaction failed in database ‘DatabaseName’ Continue Reading

Backup immutability for short-term retention backup

Current State Short-Term Retention (PITR) backups (1–35 days) do not support immutability. These backups are stored in Microsoft-managed subscriptions and storage accounts, and while customers cannot manually delete them, reducing the PITR retention period will cause older backups to be deleted automatically. There is no option to apply WORM (Write Once, Read Many) immutability to

Backup immutability for short-term retention backup Continue Reading

Configure Auditing for Azure SQL Database on a Specific table

The Azure SQL Auditing feature is used to track database events and writes them to an audit log in your Azure storage account, Log Analytics workspace, or Event Hubs. For those who are interested on how to configure Auditing on Azure SQL Database either on server-level or database-level please visit this Configure Auditing for Azure SQL Database

Configure Auditing for Azure SQL Database on a Specific table Continue Reading