{"id":13774794,"url":"https://github.com/yorek/azure-sql-db-samples","last_synced_at":"2025-04-23T15:08:06.196Z","repository":{"id":40863884,"uuid":"206863373","full_name":"yorek/azure-sql-db-samples","owner":"yorek","description":"Samples and Best pratices to use Azure SQL DB to build modern, mission critical application, with ease and confidence","archived":false,"fork":false,"pushed_at":"2024-03-11T23:31:38.000Z","size":3163,"stargazers_count":88,"open_issues_count":2,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-12T00:35:55.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yorek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-06T19:44:27.000Z","updated_at":"2024-08-03T17:09:11.782Z","dependencies_parsed_at":"2024-08-03T17:19:10.130Z","dependency_job_id":null,"html_url":"https://github.com/yorek/azure-sql-db-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorek%2Fazure-sql-db-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorek%2Fazure-sql-db-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorek%2Fazure-sql-db-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yorek%2Fazure-sql-db-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yorek","download_url":"https://codeload.github.com/yorek/azure-sql-db-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262491,"owners_count":20749171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:30.396Z","updated_at":"2025-03-30T00:42:54.948Z","avatar_url":"https://github.com/yorek.png","language":null,"funding_links":[],"categories":["Others","Code Samples"],"sub_categories":["Generic"],"readme":"---\npage_type: sample\nlanguages:\n- tsql\n- sql\nproducts:\n- azure\n- azure-sql-database\ndescription: \"Azure SQL DB Samples and Best Practices\"\nurlFragment: azure-sql-db-samples\n---\n\n# Azure SQL DB Samples and Best Practices\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n\n\u003c!-- \nGuidelines on README format: https://review.docs.microsoft.com/help/onboard/admin/samples/concepts/readme-template?branch=master\n\nGuidance on onboarding samples to docs.microsoft.com/samples: https://review.docs.microsoft.com/help/onboard/admin/samples/process/onboarding?branch=master\n\nTaxonomies for products and languages: https://review.docs.microsoft.com/new-hope/information-architecture/metadata/taxonomies?branch=master\n--\u003e\n\nSamples and Best practices to use Azure SQL DB to build modern, mission critical applications, with ease and confidence.\n\n## Running the samples\n\nMake sure you have an Azure SQL DB database to use. If you don't have an Azure account you, you can create one for free that will also include a free Azure SQL DB tier:\n\nhttps://azure.microsoft.com/en-us/free/free-account-faq/\n\nTo create a new database, follow the instructions here:\n\n[Create Azure SQL Database](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-single-database-get-started?tabs=azure-portal)\n\nor, if you're already comfortable with [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli), you can just execute (using [Powershell or Command Prompt](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows), Bash, via [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10), a Linux environment or [Azure Cloud Shell](https://docs.microsoft.com/en-us/azure/cloud-shell/overview))\n\n```bash\naz group create -n \u003cmy-resource-group\u003e -l WestUS2\naz sql server create -g \u003cmy-resource-group\u003e -n \u003cmy-server-name\u003e -u \u003cmy-user\u003e -p \u003cmy-password\u003e\naz sql db create -g \u003cmy-resource-group\u003e --server \u003cmy-server-name\u003e -n DevDB --service-objective BC_Gen5_2\n```\n\nOnce the database is created, you can connect to it using [Azure Data Studio](https://docs.microsoft.com/en-us/sql/azure-data-studio). If you need help in setting up your first connection to Azure SQL with Azure Data Studio, this quick video will help you:\n\n[How to connect to Azure SQL Database from Azure Data Studio](https://www.youtube.com/watch?v=Td_pYlRraQE)\n\nAzure Data Studio supports Jupyter Notebooks. They will be used in some samples. If you never used them before, take a look here:\n\n[Introduction to Azure Data Studio Notebooks](https://www.youtube.com/watch?v=Nt4kIHQ0IOc)\n## Sample Index\n\n1. [Create Database](./samples/00-create-database): Create an Azure SQL database\n1. [Restore Database](./samples/01-restore-database): Restoring a database in Azure SQL\n1. [Resilient Connections](./samples/02-resilient-connections): How to create resilient solutions with Azure SQL\n1. [Work with JSON](./samples/03-json): Working with JSON data in Azure SQL\n1. [Graph Models](./samples/04-graph): Graph model sample and references\n1. [GeoSpatial Support](./samples/05-spatial): Working with GeoSpatial data in Azure SQL\n1. [Key-Value Store](./samples/06-key-value): How to implement a Key-Value store with In-Memory tables\n1. [Network Latency](./samples/07-network-latency): How to minimize the impact of network latency with using Azure SQL\n1. [Read Committed Snapshot](./samples/08-read-committed-snapshot): With Azure SQL default isolation level writers will not block readers\n1. [External Data Access](./samples/09-external-data): Importing or using external data with Azure SQL\n1. [Partitioning](./samples/10-partitioning): Work In Progress\n1. [Updates and Deletes](./samples/11-updates-and-deletes): Work In Progress\n1. [Temporal Tables](./samples/12-temporal-tables): Work In Progress\n1. [Change Tracking](./samples/13-change-tracking): Using Change Tracking to detected changed rows\n1. [Change Data Capture](./samples/14-change-tracking): Using Change Data Capture to detected changed data\n1. [Columnstore](./samples/15-columnstore): Work In Progress\n1. [Data Masking](./samples/16-data-masking): Work In Progress\n1. [Ledger Tables](./samples/17-ledger-tables): Work In Progress\n1. [Row Level Security](./samples/18-row-level-security): Work In Progress\n1. [Grouping Sets](./samples/19-grouping-sets): Work In Progress\n1. [Windowing Functions](./samples/20-windowing-functions): Work In Progress\n1. [Views](./samples/21-views): Work In Progress\n1. [Stored Procedures](./samples/22-stored-procedures): Work In Progress\n1. [User Defined Functions](./samples/23-user-defined-functions): Work In Progress\n\n## Learn More\n\nIf you want to learn more on how to create modern scalable applications with Azure SQL you should read this book:\n\n**Practical Azure SQL Database for Modern Developers**\n\n[![Practical Azure SQL Database for Modern Developers](https://raw.githubusercontent.com/yorek/practical-azure-sql-db-for-modern-developers/master/practical-azure-sql-database-for-modern-developers-small.jpg)](https://www.apress.com/it/book/9781484263693)\n\nthat comes loaded with samples too: https://github.com/yorek/practical-azure-sql-db-for-modern-developers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyorek%2Fazure-sql-db-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyorek%2Fazure-sql-db-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyorek%2Fazure-sql-db-samples/lists"}