Venkatesan Jayakantham

Microsoft Azure SQL Database – Step by Step Creation tutorial

March 14, 2017 by

Microsoft Azure SQL Database is a managed cloud database for programmers/developers to develop their products easier due to less involvement in maintenance allowing the customer to concentrate on their products, because, most of the data maintenance or infrastructure is taken care by the cloud service providers.

Advantages of a cloud database:

  1. Elastic in nature – increase or decrease your server capacity instantly.
  2. Availability – Geo replication becomes too easier. This makes the backup strategy very easy two or three clicks.
  3. Multitenant facility – Cost wise, no need to invest more money in the initial stage.

    Business scenario and justification:

    SQL Server 2016 Licensing costs:

    SQL Server
    2016 editions
    Description or suitability of the product Licensing Details Channel availability Cost of the product (US$)
    Enterprise Comprehensive, Projects with high critical database and business intelligence requirements. The software provides high reliability and handles huge performance levels for Tier-1 workloads. Per core** Volume licensing, hosting $14,256***
    Standard Core database management functionalities and business intelligence capabilities for non-critical workloads with minimal IT resources. Per core** Volume licensing, hosting $3,717***
    Standard Core database management functionalities and business intelligence capabilities for non-critical workloads with minimal IT resources. Server + CAL****
    (CAL – Client Access License)
    Volume licensing, hosting, retail FPP $931***
    Developer Full-featured version of SQL Server software that allows developers to cost-effectively build, test, and demonstrate applications based on SQL Server software. Per user Free download Free
    Web Secure, cost effective and highly scalable data platform for public web sites. Available to third party software service providers only. Hosting only See your hosting partner for pricing
    Express Free entry-level database that’s ideal for learning, as well as building desktop and small server data-driven applications of up to 10 GB. Free download Free
    SQL Azure Costs:

    For basic level of SQL Azure is $4.99 per month.

    Business Calculations:

    For a small critical project, which lasts for 3 months of time,

    Dedicated database A user needs to buy the Standard version which costs $3,717 (USD)
    Microsoft AzureSQL Database A user can opt any other Azure model for storing the data 3 * 4.99$ = 14.97$
    Cost Savings $ 3702.03 (USD)

    After 3 months, I finished my project and no need for SQL Server. If we think above the cost savings, it is really huge.

    Final Result : The above calculations demonstrates the advantages of Azure Computing in the modern era.

  4. The above justification clears an option of Pay as you go. How much you’ve used, pay for that.
  5. Easy firewall options to control, who can access the databases.
  6. SQL access with Virtual machines provides huge cost saving for the customers.
  7. Security patches – No need to think about updating the software’s, the cloud providers will take care of these things.
  8. Disk space – Maintaining the machine is the core part of the cloud providers. In case of disk filling, an automatic switch over of servers and everything is taken care by Microsoft.
  9. Moving databases between different servers to handle increased load – Everything is on simple clicks and the provider will take care of rest.

SQL Azure History:

SQL Azure was originally announced in 2009 and released in 2010.

SQL Azure Step by Step creation:

Step 1 : To access or create your Azure services or database. Go to -> Microsoft Azure

Step 2 : You need a Microsoft account to login. Use your credit card for initial registration. You’ve got 3 months of free access to Azure portal and afterwards, they will charge for your usage.

Step 3: Once you’ve registered and your account will get activated and you can see the initial portal of your Azure platform as below.

Step 4: You are able to see the dashboard of your Azure portal as below. Some of the important portions to note down.

  1. Option to create your new services
  2. List of already created available services
  3. List of datacenters in the globe for Microsoft Azure
  4. Support console to contact support team – You can raise your problems as tickets and the support team will respond with clear solutions – personally, I love their service
  5. Your logged in account details with logout option.
  6. Searching option for the objects and also help files.
  7. Indications near to search option. In case of any over usage of billing details everything.
  8. Billing summary information’s.

Step 5: Click “New” and Select “Databases” and you can click “SQL Database” to create your SQL Azure database.

Step 6: Once you click the SQL Database, a SQL Database blade will appear in metro style with the below list:

  1. Database Name : Name of your SQL Azure database.
  2. Subscription Type : Under which subscription(payment model) you are trying to access or create database.
  3. Resource Group : It’s a kind of container which will have all the resources logically group together for maintenance purpose. See, I want to give access to a specific set of resources. In that case, I can group together and provide access to that group. This makes easier for me to allocate resources to resource groups based on what makes the most sense for your organization. Azure provides an option of
    1. Creating new resource groups
    2. Amend to the existing resource groups

    The option is yours to decide.

    List of key points to note under resource group.

    1. resource – An easily manageable item that is available through Azure. Some of the common resources are:
      • virtual machine,
      • storage account
      • web app
      • database
      • virtual network
    2. Makes our life easier, we can deploy, manage, and monitor all the resources for your solution as a group instead of handling them individually.
    3. Consistency maintenance – We can repeatedly deploy solutions throughout the project lifecycle with much more confidence on our deployment which is in consistent state.
    4. We can manage our infrastructure through declarative templates rather than scripts.
    5. Deployment dependencies – Clearly define the dependencies between the resources. So that, they will be deployed in correct order.

  4. Select Source:
    1. Whether you want to create a blank database – No tables in it.
    2. Want to create a sample database – you can see AdventureworkLT. All the tables will be placed in your database. This will be used to work out some samples or quick check on your SQL databases.
    3. Backup – Whether this database is a backup database for already created databases (if any)
    4. In my case, I need to create my tables by my own. So, I’ve created a blank database.

  5. Elastic pool – This is one of the awesome new feature introduced in latest version of SQL Azure. Let’s talk about this one in my later articles.

  6. Configure server settings – This option is used to configure the server settings for your SQL Azure platform. Below are some of the points to note down in this area,
    1. On selecting this option, a new blade comes right to the existing windows asking for creating a new server or you need to put it in the existing server (if any).
    2. On clicking “create a new server” option, you are able to see multiple options to be provided by the user. Such as,
      • Server name
      • Server admin login
      • Password to access the server
      • Confirm password
        • Location of the server you want. (List of available data centers will be provided in the drop down. You can select the server location based on your preference)
        • An additional option is available like, allow Azure services to access server. If you want your Azure service to access, click and enable it.
        • Click select button in the below window and finalize your option.

  7. Now comes the very important factor, pricing tier option to select your preference. You got lot of pricing options based on the features like premium, standard and basic level. Let’s talk about the pricing in detail in my future articles.

  8. I’ve selected an option of Basic level for my SQL Azure database.

  9. The final one is collation option – Collation indicates the way, how you are going to store the data and it is bounded by a set of rules. This is really important to store a varchar or char data type or nchar or nvarchar data type. The reason is we are able to specify
    1. case-sensitivity,
    2. accent marks
    3. kana character types and
    4. character width too

  10. After selecting the collation type, If you want you can pin the database in to the dashboard for quicker access.
  11. Click “Create” button. Now you SQL Azure database is ready to go.

Step 7: Below is the database creation blade for your reference.

Step 8: You are able to see the database SQLShack database is created in the server sqlshackvenkat server. It is displayed in your dashboard as below,

Step 9: On clicking the newly created SQL Server “sqlshackvenkat” you are able to see all the internal details as below.

Final Step 10: Below is the overall features and details of our SQL Azure database created.

Venkatesan Jayakantham
Latest posts by Venkatesan Jayakantham (see all)
SQL Azure

About Venkatesan Jayakantham

Venkatesan Prabu, Managing Director, KaaShiv InfoTech, India. He got 16 International awards(9 awards from Microsoft). Microsoft Awarded Most Valuable Professional on Dataplatform/database technologies and Azure Platform (Cloud computing). He usually writes articles for his blog http://venkattechnicalblog.blogspot.in/ & website www.wikitechy.com

168 Views