You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sql-database/sql-database-connect-query-ssms.md
+23-39Lines changed: 23 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,73 +11,61 @@ ms.topic: quickstart
11
11
author: stevestein
12
12
ms.author: sstein
13
13
ms.reviewer:
14
-
ms.date: 03/25/2019
14
+
ms.date: 03/10/2020
15
15
---
16
16
# Quickstart: Use SQL Server Management Studio to connect and query an Azure SQL database
17
17
18
-
In this quickstart, you'll use [SQL Server Management Studio][ssms-install-latest-84g] (SSMS) to connect to an Azure SQL database. You'll then run Transact-SQL statements to query, insert, update, and delete data. You can use SSMS to manage any SQL infrastructure, from SQL Server to SQL Database for Microsoft Windows.
18
+
In this quickstart, you'll learn how to use SQL Server Management Studio (SSMS) to connect to an Azure SQL database and run some queries.
19
19
20
20
## Prerequisites
21
21
22
-
An Azure SQL database. You can use one of these quickstarts to create and then configure a database in Azure SQL Database:
22
+
Completing this quickstart requires the following items:
| Configure |[Server-level IP firewall rule](sql-database-server-level-firewall-rule.md)|[Connectivity from a VM](sql-database-managed-instance-configure-vm.md)|
30
-
|||[Connectivity from on-site](sql-database-managed-instance-configure-p2s.md)
31
-
|Load data|Adventure Works loaded per quickstart|[Restore Wide World Importers](sql-database-managed-instance-get-started-restore.md)
32
-
|||Restore or import Adventure Works from [BACPAC](sql-database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
24
+
-[SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-management-studio-ssms/).
25
+
- The AdventureWorksLT sample database. If you need a working copy of the AdventureWorksLT database, create one by completing the [Create an Azure SQL database](sql-database-single-database-get-started.md) quickstart.
26
+
- The scripts in this article are written to use the AdventureWorksLT database. If you are using a managed instance, you must either import the AdventureWorks database into an instance database or modify the scripts in this article to use the Wide World Importers database.
33
27
34
-
> [!IMPORTANT]
35
-
> The scripts in this article are written to use the Adventure Works database. With a managed instance, you must either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
36
-
37
-
## Install the latest SSMS
38
-
39
-
Before you start, make sure you've installed the latest [SSMS][ssms-install-latest-84g].
28
+
If you simply want to run some ad-hoc queries without installing SSMS, see [Quickstart: Use the Azure portal's query editor to query a SQL database](sql-database-connect-query-portal.md).
40
29
41
30
## Get SQL server connection information
42
31
43
-
Get the connection information you need to connect to the Azure SQL database. You'll need the fully qualified server name or host name, database name, and login information for the upcoming procedures.
32
+
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.
44
33
45
34
1. Sign in to the [Azure portal](https://portal.azure.com/).
46
35
47
-
2. Navigate to the **SQL databases**or **SQL managed instances**page.
36
+
2. Navigate to the **SQL database** or **SQL managed instance**you want to query.
48
37
49
-
3. On the **Overview** page, review the fully qualified server namenext to **Server name** for a single database or the fully qualified server name next to **Host** for a managed instance. To copy the server name or host name, hover over it and select the **Copy** icon.
38
+
3. On the **Overview** page, copy the fully qualified server name. It's next to **Server name** for a single database, or the fully qualified server name next to **Host** for a managed instance. The fully qualified name looks like: *servername.database.windows.net*, except it has your actual server name.
50
39
51
40
## Connect to your database
52
41
53
-
In SMSS, connect to your Azure SQL Database server.
42
+
In SSMS, connect to your Azure SQL Database server.
54
43
55
44
> [!IMPORTANT]
56
45
> An Azure SQL Database server listens on port 1433. To connect to a SQL Database server from behind a corporate firewall, the firewall must have this port open.
57
-
>
58
46
59
-
1. Open SSMS. The **Connect to Server** dialog box appears.
47
+
1. Open SSMS.
60
48
61
-
2. Enter the following information:
49
+
2.The **Connect to Server** dialog box appears. Enter the following information:
|**Server name**| The fully qualified server name | Something like: **mynewserver20170313.database.windows.net**. |
54
+
|**Server name**| The fully qualified server name | Something like: **servername.database.windows.net**. |
67
55
|**Authentication**| SQL Server Authentication | This tutorial uses SQL Authentication. |
68
56
|**Login**| Server admin account user ID | The user ID from the server admin account used to create the server. |
69
57
|**Password**| Server admin account password | The password from the server admin account used to create the server. |
70
58
||||
71
59
72
60

73
61
74
-
3. Select **Options** in the **Connect to Server** dialog box. In the **Connect to database** drop-down menu, select **mySampleDatabase**.If you leave the drop down to default, the connection is made to **master**database.
62
+
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](#prerequisites) creates an AdventureWorksLT database named mySampleDatabase. If your working copy of the AdventureWorks database has a different name than mySampleDatabase, then select it instead.
75
63
76
64

77
65
78
66
4. Select **Connect**. The Object Explorer window opens.
79
67
80
-
5. To view the database's objects, expand **Databases** and then expand **mySampleDatabase**.
68
+
5. To view the database's objects, expand **Databases** and then expand your database node.
0 commit comments