Categories: Uncategorised

Understanding–“AZURE”–Part V-SQL DB

Welcome @ Azure University….
Hi Friends, Today I will talk about PaaS or Platform as a service . And I will show you how you can use Azure SQL Platform. Microsoft called it as Database-as-a-Service . To do this practical you need an active Azure subscription and a computer with SQL Server Management Studio installed on it. Here I am using a VM that I got from Microsoft for practice where SQL server management studio is already installed.

Before move to practical let me tell you few theoretical facts about Azure SQL PaaS.
Azure SQL Database and SQL Server in an IaaS virtual machine both are completely different . In “Azure SQL Database (PaaS)” – Maintainence of SQL database server will be done by Microsoft but in “SQL Server in Azure VM (IaaS)” – You will be completely responsible for maintaining everything , means you will create your VM and then you will download the SQL server and install on that and insert the key to activate that and you can use that or you can use SQL image from gallery .
Tradition method of using SQL Database : Install compatible OS in a computer + Install SQL server engine + SQL server management studio .
In Azure : Open Azure console and click on SQL database and create database . Install and Open SQL management studio from any computer and connect to that SQL server and work with that.
Follow the following steps to create a database in Azure SQL Platform .
  1. Open you Azure console in your browser. Click on NEW and search for SQL Database.
  2. After clicking on the SQL database you will get option to enter your database name and other details.
  3. Enter all details and then click on “SERVER” to select/create server for SQL Database. Click on “Create a new server” and enter all details and create a new server where the SQL database will be hold and click on select.
  4. After creating the SQL server click on Create. If you click on “Pricing Tier” you will get option to select Your Pricing Tier.
  5. And that’s all. You are done !! If you follow this few step you can create your database in Azure SQL which is Highly Available, locally redundant and you can access that DB from and computer through SQL management studio.
    Here is your Database (TestSQLDB).
  6. Now let’s move to desktop where we have installed SQL management studio.
  7. Open SQL management studio.
  8. Here you have to enter the server name . To get the server name move to Azure portal and click on your database.Then click on server server name to copy that .
  9. Copy that server name and paste to SQL management studio . Select authentication process : SQL Server Authentication . Provide SQL user details .And click on Connect .
  10. You will get an authentication error . Azure SQL firewall will block you to access that server . To allow that you have to allow your computer IP address from Azure SQL Firewall settings . Here I allow all computer by defining IP Address : 0.0.0.0 and Subnet Mask : 254.254.254.254 .
  11. Now try to connect .
  12. I believe you can connect to your database . Now start playing with your DB.
Thanks for reading my blog. Hope you like it . If you face any problem write me @ subhendu2016@hotmail.com . Suggestions are always welcome . Let me know how I can make my blog more better .
king

Recent Posts

Create Complex NSG – PowerShell

Creating NSG in azure is easy unless you want to create multiple NSG with multiple…

4 years ago

Restore VM from Recovery Service Vault – PowerShell

# Mention your VM here $VMName = "SubhenduTestVM" # Mention your Stage Storage here $stagestorageaccountname…

4 years ago

Power Of Powershell 2

Hope you are doing great . Current Time is very critical for us . I…

4 years ago

Power of Powershell

Being a part of Microsoft Education I have explored powershell long time back . But…

4 years ago

New Azure Exam is Ready to Launch

Sorry !! But Yes .  Microsoft is about to release new exam in Azure Segment…

4 years ago

DFSR to Azure File Sync | DFS cross domain Migration | Azure File Sync Agent issue and Solution

Migration is always a part of our life and part of this fantastic IT world…

4 years ago