Official Microsoft GitHub Repository containing code samples for SQL Server
Latest commit 5cc4bb3 Feb 23, 2017 @jovanpop-msft jovanpop-msft committed on GitHub Merge pull request #192 from JocaPC/master
Updated load from azure blob storage example

SQL Server Samples Repository

This GitHub repository contains code samples that demonstrate how to use Microsoft's SQL products including SQL Server, Azure SQL Database, and Azure SQL Data Warehouse. Each sample includes a README file that explains how to run and use the sample.

Note that certain features like In-Memory OLTP are edition specific for SQL Server and would be possible to implement if the edition which supports that feature is being used to run the sample.

Releases in this repository

Releases allow you to conveniently download sample databases or applications without the need to build them from source code. This SQL Server samples repository has the following notable releases:

To see the complete list of resources in this repository, navigate to Releases

Working in GitHub

To work in GitHub, go to and fork the repository. Work in your own fork and when you are ready to submit to make a change or publish your sample for the first time, submit a pull request into the master branch of sql-server-samples. One of the approvers will review your request and accept or reject the pull request.

Each sample should be in its own folder with a file that follows the template. Generated files (e.g., .exe or .bacpac) and user configuration settings (e.g., .user) should not be committed to GitHub.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.


These samples and templates are all licensed under the MIT license. See the license.txt file in the root.


Email questions to: