Azure SQL Database
Azure SQL Database
Database
Azure SQL Database
SQL Database is a high-performance reliable cloud database. It is a managed cloud database-
as-a-Service (SaaS) that uses the SQL Server database engine in the Azure Cloud Platform.
It becomes easier for the developers/programmers to develop their products as there is less
involvement in the maintenance part of the product. It supports relational, JSON, XML, and
spatial data structures. Azure SQL provides various advanced features to its users such as
Long-term backup retention, Geo-replication, Automatic tuning, Scaling database resources,
business continuity etc.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 4: Fill in the following details under the “Project Details” section:
● Step 5: Fill in the following details under the “Database Details” section:
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
3. Elastic Pool: If you had a large number of databases and want to manage the
performance and the cost together, you could put them in an elastic pool. But here,
you need to create a new one. Hence, Select “No”.
4. Workload Environment: As default settings are provided for production workloads.
Keep it as it is.
5. Compute + Storage: Once you are done creating a server, you will be able to click on
the “Configure Database”, where you will have to select pricing options
(Explained in Step-8).
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
3. Geo-redundant backup storage: Copies your backups synchronously three times
within a single physical location in the primary region using LRS, then copies your data
asynchronously to a single physical location in the paired secondary region.
● Step 7: Click on the “Create new” option as highlighted in Step 5 to create a new server.
Enter the below details on the New Server form.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 8: Under “Compute + Storage”, Click on “Configure database”. Here, you need to
configure the database. This defines the storage and CPU usage of the databases. There
are mainly two types of configurations – DTU and vcore-based.
DTU stands for the Database Transaction Unit that will define how many resources
your database has. DTU offers a blend of computing, memory and I/O resources. There
are three configurations -
1. Basic : DTU:5, Size:2GB
2. Standard : DTU:10-3000, size: 1TB
3. Premium : DTU:125-4000, size: 4TB
vCore Model allows you to dig into the underlying resources and scale them
independently for optional performance. It allows you to take Azure Hybrid Benefit
for SQL Server.
1. General-purpose/Standard: Scalable compute and storage options
2. Business Critical/Premium: On-demand scalable storage
3. Hyperscale: High transaction rate and high resiliency
For the initial use, In-Service tier, Select “Standard” under the DTU-based purchasing model.
Then, Click on “Apply”.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 9: After configuring the server, you’ll again be redirected to the same page. Now,
Click on “Next: Networking >” to jump onto the networking section.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 10: In the Networking tab, Choose the below options :
● Step 11: Click on “Next: Security >” and Keep these options as it is.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 12: Click on “Next: Additional Settings >” and go to the Additional Settings tab.
Select the “None” option for “Use existing data”.
● Step 13: Click on “Next: Tags >” and Keep it as it is. Then, Click on “Review + Create”.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 14: “Review + Create” option will provide you with an overview of your Azure SQL
Database. Afterwards, click on “Create” to create your database.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 15: Wait for a few minutes and your deployment will be completed.
● Step 16: Once done with the deployment, when you go to the SQL databases, you can
see the database that you have just created. Select your database and continue with
the next step.
● Step 17: When you click on the database, you will the ‘server name’. Copy the server
name and then open SQL Server Management Studio.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 18: After opening the SSMS, Enter the server name which you have copied in the
previous step and Also, change the Authentication to “SQL Server Authentication”. Click
on “Connect”.
● Step 19: After clicking on “Connect”, the below pop-up window appears. Now, you have
to set the firewall rules for your Azure SQL server.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 20: For that, Click on Set Server Firewall from the Overview tab of the Azure portal.
● Step 21: Now, In the firewall rules section, Add your “Client IP address”. Then, you’ll
notice one IP address gets automatically added to the below list. “Save” the Changes.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 22: Again, In the SSMS, Click on “Cancel” if the “New firewall Rule” window
appears. Then Again, Click on “Connect” after entering the credentials.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 23: Your Azure SQL Database is now successfully connected. You can access the
database from Azure Database in SSMS.
Contact Us
You can always reach out to us if you need help with this practice hands-on lab. For getting
help email us at hello@scholarhat.com or connect at the #support channel on Discord.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.