Microsoft Docs

Azure SQL Database Samples

Explore a variety of code samples, tutorials, and quickstarts to help you build and manage your Azure SQL Database solutions.

Basic Connectivity Sample

Learn how to establish a connection to your Azure SQL Database using common programming languages like C#, Python, and Java.

C# Python Java Connectivity
View Sample

CRUD Operations with EF Core

Demonstrates performing Create, Read, Update, and Delete operations on your Azure SQL Database using Entity Framework Core.

C# .NET EF Core CRUD
View Sample

Performance Tuning Guide

Practical examples and best practices for optimizing the performance of your Azure SQL Database queries and schema.

SQL Performance Tuning
View Sample

High Availability with Failover Groups

Implement and test disaster recovery strategies using active geo-replication and auto-failover groups.

Azure CLI PowerShell HA/DR Failover
View Sample

Serverless Compute Samples

Examples showcasing how to leverage serverless capabilities for cost-effective scaling of your database workloads.

Serverless Scaling Cost Optimization
View Sample

Security Best Practices

Code snippets and configurations for securing your Azure SQL Database, including authentication, authorization, and encryption.

Security Authentication Encryption
View Sample