Skip to content

Samples and Best pratices to use Azure SQL DB to build modern, mission critical application, with ease and confidence

License

Notifications You must be signed in to change notification settings

yorek/azure-sql-db-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type languages products description urlFragment
sample
tsql
sql
azure
azure-sql-database
Azure SQL DB Samples and Best Practices
azure-sql-db-samples

Azure SQL DB Samples and Best Practices

License

Samples and Best practices to use Azure SQL DB to build modern, mission critical applications, with ease and confidence.

Running the samples

Make 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:

https://azure.microsoft.com/en-us/free/free-account-faq/

To create a new database, follow the instructions here:

Create Azure SQL Database

or, if you're already comfortable with Azure CLI, you can just execute (using Powershell or Command Prompt, Bash, via WSL, a Linux environment or Azure Cloud Shell)

az group create -n <my-resource-group> -l WestUS2
az sql server create -g <my-resource-group> -n <my-server-name> -u <my-user> -p <my-password>
az sql db create -g <my-resource-group> --server <my-server-name> -n DevDB --service-objective BC_Gen5_2

Once the database is created, you can connect to it using 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:

How to connect to Azure SQL Database from Azure Data Studio

Azure Data Studio supports Jupyter Notebooks. They will be used in some samples. If you never used them before, take a look here:

Introduction to Azure Data Studio Notebooks

Sample Index

  1. Create Database: Create an Azure SQL database
  2. Restore Database: Restoring a database in Azure SQL
  3. Resilient Connections: How to create resilient solutions with Azure SQL
  4. Work with JSON: Working with JSON data in Azure SQL
  5. Graph Models: Graph model sample and references
  6. GeoSpatial Support: Working with GeoSpatial data in Azure SQL
  7. Key-Value Store: How to implement a Key-Value store with In-Memory tables
  8. Network Latency: How to minimize the impact of network latency with using Azure SQL
  9. Read Committed Snapshot: With Azure SQL default isolation level writers will not block readers
  10. External Data Access: Importing or using external data with Azure SQL
  11. Partitioning: Work In Progress
  12. Updates and Deletes: Work In Progress
  13. Temporal Tables: Work In Progress
  14. Change Tracking: Using Change Tracking to detected changed rows
  15. Change Data Capture: Using Change Data Capture to detected changed data
  16. Columnstore: Work In Progress
  17. Data Masking: Work In Progress
  18. Ledger Tables: Work In Progress
  19. Row Level Security: Work In Progress
  20. Grouping Sets: Work In Progress
  21. Windowing Functions: Work In Progress
  22. Views: Work In Progress
  23. Stored Procedures: Work In Progress
  24. User Defined Functions: Work In Progress

Learn More

If you want to learn more on how to create modern scalable applications with Azure SQL you should read this book:

Practical Azure SQL Database for Modern Developers

Practical Azure SQL Database for Modern Developers

that comes loaded with samples too: https://github.com/yorek/practical-azure-sql-db-for-modern-developers

About

Samples and Best pratices to use Azure SQL DB to build modern, mission critical application, with ease and confidence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published