Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

1

SMARTKNOWER
AZURE CLOUD COMPUTING NOVEMBER MAJOR PROJECT
ON
Create an Azure SQL database using the sandbox environment and run a sample
query on it.

SUBMITTED BY

P.VAMSHI TEJA

20831A1248,IT,GURU NANAK COLLEGE

HYDERABAD

1
2

ABSTRACT
“Cloud” is a collective term for a large number of developments and possibilities. It is not an
invention, but more of a “practical innovation”, combining several earlier inventions into
something new and compelling. Much like the iPod is comprised of several existing
concepts and technologies (the Walkman, MP3 compression and a portable hard disk),
cloud computing merges several already available technologies: high bandwidth networks,
virtualization, Web 2.0 interactivity, time sharing, and browser interfaces. Cloud Computing
is a popular phrase that is shorthand for applications that were developed to be rich Internet
applications that run on the Internet (or “Cloud”). Cloud computing enables tasks to be
assigned to a combination of software and services over a network. This network of servers
is the cloud. Cloud computing can help businesses transform their existing server
infrastructures into dynamic environments, expanding and reducing server capacity
depending on their requirements. A cloud computing platform dynamically provisions,
configures, reconfigures, and deprovisions servers as needed. 

2
3

ACKNOWLEDGMENT
I would like to extend my sincere thanks to SMARTKNOWER TEAM for support and
encouragement in preparation of the project.

It is proud privilege and duty to acknowledge the kind of help and guidance.

Received from several people in preparation of this project .It would not been possible
to prepare this project in this from without their valuable help.

3
4

TABLE OF CONTENT PAGENO

1. Introduction 5

2. Azure SQL database 6-11

3. Query the database 12-13

4. Connect and query using SQL server 14-18

5. Connect and query using Azure data studio 19-20

6. Conclusion 21

7. References 22

4
5

INTRODUCTION

During the migration journey from SQL Server to Azure SQL Database or Managed Instance, the
customers I meet often wondering how to deal with the Integrated Authentication, their applications,
especially the legacy ones.
The following tutorial will help you to create a small sandbox based on an Azure SQL Database, an
Azure Active Directory synchronized with an OnPremise Active Directory.
This tutorial is, of course, for testing/learning purpose only and is not intended to be used in
production or any other environment.
Note that we’ll mainly use the Azure portal, but all of the following actions can be done using
Powershell.
Typically, in non-production environments, whenever new databases are created, one of the
preliminary requirements is to have some test data loaded to perform some basic checks. Also,
sample data is required for a variety of different scenarios. In a highly regulated environment where
loading data from external sources need to follow a stipulated process, it can take quite some time to
load sample data, which may delay the initiation or acceptance testing of certain work aspects on a
database. To add to it, to properly test various database features one may need data that is
meaningful, normalized and contains at least a few business entities that are inter-related.
Generating a random number of records with random values with a script often does not provide the
quality of data that is productive for testing out database features. On Azure cloud, Azure SQL
Database is one of the most popular means of hosting transactional data, and the needs of sample
data on the database are the same. In this article, we will understand how to create a database with
built-in sample data on Azure, so that developers do not need to put in separate efforts to set it up
for testing database features.

Log on to the Azure portal and navigate to All services from the menu button on the top-left corner
of the It is assumed that one has an Azure account with the required privileges to access database
service page. Click on the Databases section.

5
6

2. AZURE SQL DATABASE


To create a single database in the Azure portal, this quickstart starts at the Azure
SQL page.

1. Browse to the Select SQL Deployment option page.


2. Under SQL databases, leave Resource type set to Single database, and
select Create.

1. On the Basics tab of the Create SQL Database form, under Project details,


select the desired Azure Subscription.

2. For Resource group, select Create new, enter myResourceGroup, and select OK.

3. For Database name, enter mySampleDatabase.

4. For Server, select Create new, and fill out the New server form with the following
values:

6
7

7
8

1.

 Server name: Enter mysqlserver, and add some characters for uniqueness.


We can't provide an exact server name to use because server names must be
globally unique for all servers in Azure, not just unique within a subscription.
So enter something like mysqlserver12345, and the portal lets you know if it's
available or not.
 Location: Select a location from the dropdown list.
 Authentication method: Select Use SQL authentication.
 Server admin login: Enter azureuser.
 Password: Enter a password that meets requirements, and enter it again in
the Confirm password field.

Select OK.

2. Leave Want to use SQL elastic pool set to No.


3. Under Compute + storage, select Configure database.
4. This quickstart uses a serverless database, so leave Service tier set to General
Purpose (Scalable compute and storage options) and set Compute
tier to Serverless. Select Apply.

8
9

1. Under Backup storage redundancy, choose a redundancy option for the storage


account where your backups will be saved. To learn more, see backup storage
redundancy.

2. Select Next: Networking at the bottom of the page

9
10

1. On the Networking tab, for Connectivity method, select Public endpoint.

2. For Firewall rules, set Add current client IP address to Yes. Leave Allow Azure


services and resources to access this server set to No

10
11

1. Under Connection policy, choose the Default connection policy, and leave


the Minimum TLS version at the default of TLS 1.2.
2. Select Next: Security at the bottom of the page.

11
12

12
13

3. QUERY THE DATABASE

Once your database is created, you can use the Query editor (preview) in the Azure
portal to connect to the database and query data.

1. In the portal, search for and select SQL databases, and then select your database
from the list.

2. On the page for your database, select Query editor (preview) in the left menu.

3. Enter your server admin login information, and select OK.

13
14

Select Run, and then review the query results in the Results pane.

14
15

4.CONNECT AND QUERY USING SQL SERVER

Get the connection information you need to connect to your database. You'll need the
fully qualified server name or host name, database name, and login information to
complete this quickstart.

1. Sign in to the Azure portal.

2. Navigate to the database or managed instance you want to query.

3. On the Overview page, review the fully qualified server name next to Server


name for your database in SQL Database or the fully qualified server name (or IP
address) next to Host for your managed instance in SQL Managed Instance or your
SQL Server instance on your VM.

4.
5. Open SSMS.
6. The Connect to Server dialog box appears. Enter the following information:

15
16

3.Select Options in the Connect to Server dialog box. In the Connect to database drop-down


menu, select mySampleDatabase. Completing the quickstart in the Prerequisites section creates
an AdventureWorksLT database named mySampleDatabase. If your working copy of the
AdventureWorks database has a different name than mySampleDatabase, then select it instead.

3. Select Connect. The Object Explorer window opens.

4. To view the database's objects, expand Databases and then expand your


database node.

16
17

Query data
Run this SELECT Transact-SQL code to query for the top 20 products by category.

1. In Object Explorer, right-click mySampleDatabase and select New Query. A new


query window connected to your database opens.
2. In the query window, paste the following SQL query.

17
18

18
19

19
20

5 CONNECT AND QUERY USING AZURE DATA

1. In the Azure portal, on your Azure SQL database Overview page, select Server


name under Essentials to navigate to the server for your database.

2. On the server page, select Azure Active Directory in the Settings section of the


left menu.

3. On the Azure Active Directory page toolbar, select Set admin.

20
21

Connect to the query editor


1. On your SQL database Overview page in the Azure portal, select Query editor
(preview) from the left menu.

21
22

6 CONCLUSION

In conclusion, cloud computing is recently new technological development that has the potential to have
a great impact on the world. It has many benefits that it provides to it users and businesses. For example,
some of the benefits that it provides to businesses, is that it reduces operating cost by spending less on
maintenance and software upgrades and focus more on the businesses it self. But there are other
challenges the cloud computing must overcome. People are very skeptical about whether their data is
secure and private. There are no standards or regulations worldwide provided data through cloud
computing. Europe has data protection laws but the US, being one of the most technological advance
nation, does not have any data protection laws. Users also worry about who can disclose their data and
have ownership of their data. But once, there are standards and regulation worldwide, cloud computing
will revolutionize the future. 

22
23

7 REFERENCES
https://learn.microsoft.com/en-us/azure/azure-sql/database/
connect-query-portal?view=azuresql-db
https://www.rroij.com/peer-reviewed/cloud-computing-an-
overview-37584.html

23

You might also like