官术网_书友最值得收藏!

  • ETL with Azure Cookbook
  • Christian Cote Matija Lah Madina Saitakhmetova
  • 260字
  • 2021-06-11 18:02:39

Connecting SQL Management Studio to Azure SQL

This recipe will show you how to connect to our Azure SQL database from your computer.

Getting ready

This recipe assumes that you have installed SSMS.

How to do it…

This is a very short and simple recipe! Let's begin by opening SSMS:

  1. We're going to connect to the Azure database that we created in the previous recipe, Creating a SQL Azure database. Log into your Azure subscription and navigate to the ETLInAzureCookBook resource group.
  2. Click on the AdventureWorksLT SQL database to open its blade. Copy the server name found at the top right as shown in the following screenshot:

    Figure 2.14 – Get the server name from the Azure subscription

  3. Using SSMS, log into the server using the username and password that we used in Step 7 of the previous recipe: Creating a SQL Azure database. Once connected, the Object Explorer shows the database and its related objects. Expanding the Tables folder lists all the tables, as shown in the following screenshot:

Figure 2.15 – Azure SQL SSMS Object Explorer

That's it! We have connected to our Azure SQL server from an on-premises program.

How it works…

Connecting to a SQL Azure database is not as simple as a regular on-premises database. We must open firewall rules to access the database on-premises. This is done by design to prevent any malicious data from accessing our data in Azure. But, once we are connected, we can query the data as simply as if it was a regular SQL Server database on-premises.

主站蜘蛛池模板: 雅安市| 平顶山市| 米易县| 巩义市| 汨罗市| 江华| 锡林浩特市| 海晏县| 呼伦贝尔市| 安阳市| 金沙县| 台湾省| 墨玉县| 隆子县| 博客| 长子县| 龙游县| 衢州市| 余姚市| 社会| 揭西县| 甘南县| 台南县| 子长县| 柳州市| 营口市| 水城县| 巢湖市| 富蕴县| 安阳市| 大理市| 绥江县| 赤城县| 犍为县| 临猗县| 绥宁县| 延津县| 南丹县| 内丘县| 开封县| 丹江口市|