# microsoft/sql-server-samples

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/microsoft-sql-server-samples).**

11,122 stars · 9,098 forks · NOASSERTION

## Links

- GitHub: https://github.com/microsoft/sql-server-samples
- awesome-repositories: https://awesome-repositories.com/repository/microsoft-sql-server-samples.md

## Description

This is a reference implementation library providing a collection of code samples, Transact-SQL scripts, and schemas for SQL Server, Azure SQL, and Azure Synapse. It focuses on providing standardized implementation patterns and reference code for building relational databases and cloud data warehouses.

The library distinguishes itself by offering specialized guides and examples for deploying database instances within containerized environments and Azure cloud services. It includes specific reference databases and language extensions for integrating machine learning services and advanced analytics directly within the database engine.

The repository covers a broad range of capabilities, including real-time IoT telemetry ingestion pipelines, performance benchmarking between disk and in-memory storage, and the application of standard relational workload patterns for transactions and warehousing.

The project provides script-based environment provisioning and schema-driven sample databases to instantiate reproducible environments for feature demonstrations.

## Tags

### Data & Databases

- [Relational Database Management Systems](https://awesome-repositories.com/f/data-databases/relational-database-management-systems.md) — Provides a comprehensive reference library for deploying and managing relational database systems. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Reference Implementation Libraries](https://awesome-repositories.com/f/data-databases/sql-script-libraries/reference-implementation-libraries.md) — Provides a comprehensive library of reference implementations, T-SQL scripts, and schemas for SQL Server, Azure SQL, and Azure Synapse.
- [SQL Server Implementation Patterns](https://awesome-repositories.com/f/data-databases/sql-server-implementation-patterns.md) — Provides reference implementations and T-SQL patterns for building relational databases and cloud data warehouses.
- [Containerized Database Administration](https://awesome-repositories.com/f/data-databases/containerized-database-administration.md) — Provides configurations for running and administering SQL database instances within containerized environments.
- [Data Warehousing Patterns](https://awesome-repositories.com/f/data-databases/data-warehousing-patterns.md) — Implements standard architectural patterns for data warehousing and transactional processing. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Database Design Patterns](https://awesome-repositories.com/f/data-databases/database-design-patterns.md) — Uses implementation templates and code examples to standardize database behavior and schema design. ([source](https://github.com/microsoft/sql-server-samples/blob/master/sql-server-samples.code-workspace))
- [Database Logic Implementations](https://awesome-repositories.com/f/data-databases/database-logic-implementations.md) — Provides reference code and proven implementation patterns for creating functional database logic. ([source](https://github.com/microsoft/sql-server-samples/blob/master/composer.json))
- [Enterprise SQL Servers](https://awesome-repositories.com/f/data-databases/distributed-sql-databases/enterprise-sql-servers.md) — Includes implementation examples for deploying and managing enterprise-grade SQL Server platforms. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Procedural Language Runtimes](https://awesome-repositories.com/f/data-databases/procedural-language-runtimes.md) — Integrates external language runtimes directly within the database process for machine learning and advanced analytics.
- [SQL Sample Databases](https://awesome-repositories.com/f/data-databases/sql-sample-databases.md) — Provides pre-built databases and sample schemas to demonstrate relational workloads for transactions and analytics. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [SQL Server Persistence](https://awesome-repositories.com/f/data-databases/sql-server-persistence.md) — Provides reference code and T-SQL patterns for structuring relational databases and warehouses.
- [Relational Workload Patterns](https://awesome-repositories.com/f/data-databases/t-sql-maintenance-frameworks/relational-workload-patterns.md) — Defines relational structures and data warehousing workflows using standardized Transact-SQL scripts.
- [Storage Latency Analysis](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/data-storage/file-based-storage/local-configuration-storage/storage-mode-configurators/in-memory-storage-modes/storage-latency-analysis.md) — Provides dual storage mode implementations to measure and analyze latency differences between persistent disk and in-memory tables.
- [Storage Latency Benchmarks](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/data-storage/file-based-storage/local-configuration-storage/storage-mode-configurators/in-memory-storage-modes/storage-latency-benchmarks.md) — Implements both disk-based and in-memory configurations to analyze and measure data retrieval latency differences.
- [Declarative Data Seeding](https://awesome-repositories.com/f/data-databases/data-seeding-utilities/declarative-data-seeding.md) — Provides pre-defined table structures and data scripts to instantiate reproducible environments for demonstrations.
- [Performance Benchmarking](https://awesome-repositories.com/f/data-databases/database-performance-utilities/performance-benchmarking.md) — Implements performance testing to measure memory and disk retrieval speeds for optimizing data processing.
- [Memory-Optimized Processing](https://awesome-repositories.com/f/data-databases/high-performance-data-infrastructures/memory-optimized-processing.md) — Implements memory-optimized processing techniques to increase transaction speed and reduce system response time. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [In-Memory Databases](https://awesome-repositories.com/f/data-databases/in-memory-databases.md) — Demonstrates performance gains and optimization techniques using in-memory database processing. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Memory-Optimized Storage Benchmarks](https://awesome-repositories.com/f/data-databases/memory-optimized-storage-benchmarks.md) — SQL Server compares the speed and throughput of in-memory table technologies against disk-based storage to identify performance gains. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Real-Time Data Streaming](https://awesome-repositories.com/f/data-databases/real-time-data-streaming.md) — Processes real-time telemetry from sensors and devices for immediate analytics within the database layer. ([source](https://github.com/microsoft/sql-server-samples/blob/master/README.md))
- [Sample Databases](https://awesome-repositories.com/f/data-databases/sample-databases.md) — Provides pre-built database schemas and data dumps to simulate real-world scenarios. ([source](https://github.com/microsoft/sql-server-samples/blob/master/README.md))
- [Engine Capability Showcases](https://awesome-repositories.com/f/data-databases/sql-sample-databases/engine-capability-showcases.md) — Illustrates advanced capabilities like in-memory processing and integrated analytics using functional code examples. ([source](https://github.com/microsoft/sql-server-samples/tree/master/samples))
- [Telemetry Data Pipelines](https://awesome-repositories.com/f/data-databases/telemetry-data-pipelines.md) — Provides specialized ingestion pipelines for streaming real-time sensor data into relational tables.

### Artificial Intelligence & ML

- [SQL-Based Machine Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/sql-based-machine-learning.md) — Implements machine learning services and advanced analytics by integrating external language runtimes directly within the database engine.
- [Database ML Service Examples](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning-implementations/database-ml-service-examples.md) — Implements machine learning services and language extensions using specialized test databases. ([source](https://github.com/microsoft/sql-server-samples#readme))

### DevOps & Infrastructure

- [Azure SQL Deployment Scripts](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment-automation/azure-deployment-automators/azure-sql-deployment-scripts.md) — Provides configuration scripts and guides for deploying database instances and warehouses in Azure.
- [Database Cloud Provisioning](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment-automation/azure-deployment-automators/database-cloud-provisioning.md) — Provides configuration scripts for deploying database instances and data warehouses within Azure.
- [SQL Cloud Deployment Automation](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment-automation/azure-deployment-automators/sql-cloud-deployment-automation.md) — Configures and manages database instances and data warehouses within Azure cloud environments.
- [Containerized Deployment Runtimes](https://awesome-repositories.com/f/devops-infrastructure/containerized-deployment-runtimes.md) — Packages database engines into container images for isolated execution across different operating systems.
- [Containerized Deployments](https://awesome-repositories.com/f/devops-infrastructure/containerized-deployments.md) — Runs database instances within containerized environments to ensure consistent deployment across platforms. ([source](https://github.com/microsoft/sql-server-samples/tree/master/samples))
- [Container Deployment](https://awesome-repositories.com/f/devops-infrastructure/container-deployment.md) — Provides guides and examples for deploying database engines within portable container images.

### Software Engineering & Architecture

- [Cloud Architecture Patterns](https://awesome-repositories.com/f/software-engineering-architecture/cloud-architecture-patterns.md) — Provides curated code examples for implementing database features and architectural patterns across cloud services. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [Relational Workload Patterns](https://awesome-repositories.com/f/software-engineering-architecture/relational-workload-patterns.md) — Offers standardized Transact-SQL code examples and database structures for building relational databases and cloud data warehouses.

### Development Tools & Productivity

- [Database Business Scenarios](https://awesome-repositories.com/f/development-tools-productivity/sample-applications/database-business-scenarios.md) — Builds real-world application contexts using end-to-end sample applications to validate business workflows. ([source](https://github.com/microsoft/sql-server-samples/tree/master/samples))

### Hardware & IoT

- [IoT Data Collection](https://awesome-repositories.com/f/hardware-iot/iot-data-collection.md) — Collects data from devices and sensors to prepare it for analytical processing within a database. ([source](https://github.com/microsoft/sql-server-samples#readme))
- [IoT Message Ingestion](https://awesome-repositories.com/f/hardware-iot/iot-message-ingestion.md) — Captures and routes data from sensors and hardware devices into a relational database environment. ([source](https://github.com/microsoft/sql-server-samples#readme))

### Operating Systems & Systems Programming

- [Database Process Language Hosting](https://awesome-repositories.com/f/operating-systems-systems-programming/platform-development-integration/native-system-extensions/language-extensions/database-process-language-hosting.md) — Integrates external language runtimes directly within the database process for machine learning and analytics.
- [Database Instance Provisioning](https://awesome-repositories.com/f/operating-systems-systems-programming/terminal-command-line-environments/shells-scripting/provisioning-scripts/database-instance-provisioning.md) — Automates the setup of database instances and schemas using executable SQL and shell scripts.

### Testing & Quality Assurance

- [Storage Performance Benchmarking](https://awesome-repositories.com/f/testing-quality-assurance/comparative-performance-benchmarking/storage-performance-benchmarking.md) — Measures data retrieval speeds and compares in-memory versus disk storage to optimize processing.
