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: docs/sql-operations-studio/quickstart-sql-database.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Quickstart: Connect and query an Azure SQL database using SQL Operations Studio (preview) | Microsoft Docs"
3
3
description: This quickstart shows how to use SQL Operations Studio (preview) to connect to a SQL database and run a query
4
4
ms.custom: "tools|sos"
5
-
ms.date: "11/15/2017"
5
+
ms.date: "03/08/2018"
6
6
ms.prod: "sql-non-specified"
7
7
ms.reviewer: "alayu; erickang; sstein"
8
8
ms.suite: "sql"
@@ -36,11 +36,11 @@ If you don't already have an Azure SQL server, complete one of the following Azu
36
36
37
37
Use [!INCLUDE[name-sos](../includes/name-sos-short.md)] to establish a connection to your Azure SQL Database server.
38
38
39
-
1. The first time you run [!INCLUDE[name-sos](../includes/name-sos-short.md)] the **Connection** page should open. If the **Connection** page doesn't open, click the **New Connection** icon in the **SERVERS** sidebar:
39
+
1. The first time you run [!INCLUDE[name-sos](../includes/name-sos-short.md)] the **Connection** page should open. If you don't see the **Connection** page, click **Add Connection**, or the **New Connection** icon in the **SERVERS** sidebar:
2. This article uses *SQL Login*, but *Windows Authentication* is also supported. Fill in the fields as follows:
43
+
2. This article uses *SQL Login*, but *Windows Authentication* is also supported. Fill in the fields as follows using the server name, user name, and password for *your* Azure SQL server:
3. If you get an error about the firewall, you need to create a firewall rule. To create a firewall rule, see [Firewall rules](https://docs.microsoft.com/azure/sql-database/sql-database-firewall-configure).
57
+
3. If your server doesn't have a firewall rule allowing SQL Operations Studio to connect, the**Create new firewall rule** dialog opens. Complete the form to create a new firewall rule. For details, see [Firewall rules](https://docs.microsoft.com/azure/sql-database/sql-database-firewall-configure).
58
58
59
-
4. After successfully connecting your server will appear in the *Servers* sidebar.
4. After successfully connecting your server opens in the *Servers* sidebar.
60
62
61
63
## Create the tutorial database
62
64
63
-
The *TutorialDB* database is used in several [!INCLUDE[name-sos](../includes/name-sos-short.md)] tutorials.
65
+
The following sections create the *TutorialDB* database that is used in several [!INCLUDE[name-sos](../includes/name-sos-short.md)] tutorials.
64
66
65
67
1. Right click on your Azure SQL server in the SERVERS sidebar and select **New Query.**
66
68
67
-
1. Paste the following snippet into the query editor.
69
+
1. Paste the following snippet into the query editor and click **Run**:
68
70
69
71
```sql
70
72
IF NOT EXISTS (
@@ -79,7 +81,6 @@ The *TutorialDB* database is used in several [!INCLUDE[name-sos](../includes/nam
79
81
GO
80
82
```
81
83
82
-
1. To execute the query, click **Run**.
83
84
84
85
85
86
## Create a table
@@ -92,7 +93,10 @@ The query editor is still connected to the *master* database, but we want to cre
92
93
93
94
94
95
95
-
1. Paste the following snippet into the query editor.
96
+
1. Paste the following snippet into the query editor and click **Run**:
97
+
98
+
> [!NOTE]
99
+
> You can append this to, or overwrite the previous query in the editor. Note that clicking **Run** executes only the query that is selected. If nothing is selected, clicking **Run** executes all queries in the editor.
96
100
97
101
```sql
98
102
-- Create a new table called 'Customers' in schema 'dbo'
@@ -110,11 +114,12 @@ The query editor is still connected to the *master* database, but we want to cre
110
114
);
111
115
GO
112
116
```
113
-
1. To execute the query, click **Run**.
117
+
114
118
115
119
## Insert rows
116
120
117
-
1. Paste the following snippet into the query editor:
121
+
- Paste the following snippet into the query editor and click **Run**:
122
+
118
123
```sql
119
124
-- Insert rows into table 'Customers'
120
125
INSERT INTOdbo.Customers
@@ -127,17 +132,16 @@ The query editor is still connected to the *master* database, but we want to cre
127
132
GO
128
133
```
129
134
130
-
1. To execute the query, click **Run**.
131
135
132
136
## View the result
133
-
1. Paste the following snippet into the query editor.
137
+
1. Paste the following snippet into the query editor and click **Run**.
3. If you get an error about the firewall, you need to create a firewall rule. To create a firewall rule, see [Firewall rules](https://docs.microsoft.com/azure/sql-database/sql-database-firewall-configure).
54
+
3. If your server doesn't have a firewall rule allowing SQL Operations Studio to connect, the**Create new firewall rule** dialog opens. Complete the form to create a new firewall rule. For details, see [Firewall rules](https://docs.microsoft.com/azure/sql-database/sql-database-firewall-configure).
1. Paste the following snippet into the query editor:
90
+
1. Paste the following snippet into the query editor and click **Run**:
91
+
92
+
> [!NOTE]
93
+
> You can append this to, or overwrite the previous query in the editor. Note that clicking **Run** executes only the query that is selected. If nothing is selected, clicking **Run** executes all queries in the editor.
88
94
89
95
```sql
90
96
-- Create a new table called 'Customers' in schema 'dbo'
@@ -103,11 +109,10 @@ The query editor is still connected to the *master* database, but we want to cre
103
109
GO
104
110
```
105
111
106
-
1. To execute the query, click **Run**.
107
112
108
113
## Insert rows
109
114
110
-
1. Paste the following snippet into the query editor:
115
+
1. Paste the following snippet into the query editor and click **Run**:
111
116
112
117
```sql
113
118
-- Insert rows into table 'Customers'
@@ -119,17 +124,16 @@ The query editor is still connected to the *master* database, but we want to cre
Copy file name to clipboardExpand all lines: docs/sql-operations-studio/quickstart-sql-server.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Quickstart: Connect and query SQL Server using SQL Operations Studio (preview) | Microsoft Docs"
3
3
description: This quickstart shows how to use SQL Operations Studio (preview) to connect to SQL Server and run a query
4
4
ms.custom: "tools|sos"
5
-
ms.date: "11/15/2017"
5
+
ms.date: "03/08/2018"
6
6
ms.prod: "sql-non-specified"
7
7
ms.reviewer: "alayu; erickang; sstein"
8
8
ms.suite: "sql"
@@ -88,7 +88,10 @@ The query editor is still connected to the *master* database, but we want to cre
88
88
89
89
90
90
91
-
1. Paste the following snippet into the query window:
91
+
1. Paste the following snippet into the query window and click **Run**:
92
+
93
+
> [!NOTE]
94
+
> You can append this to, or overwrite the previous query in the editor. Note that clicking **Run** executes only the query that is selected. If nothing is selected, clicking **Run** executes all queries in the editor.
92
95
93
96
```sql
94
97
-- Create a new table called 'Customers' in schema 'dbo'
@@ -111,7 +114,8 @@ After the query completes, the new **Customers** table appears in the list of ta
111
114
112
115
## Insert rows
113
116
114
-
1. Paste the following snippet into the query window:
117
+
- Paste the following snippet into the query window and click **Run**:
118
+
115
119
```sql
116
120
-- Insert rows into table 'Customers'
117
121
INSERT INTOdbo.Customers
@@ -124,18 +128,17 @@ After the query completes, the new **Customers** table appears in the list of ta
124
128
GO
125
129
```
126
130
127
-
1. To execute the query, click **Run**.
128
131
129
132
130
133
## View the data returned by a query
131
-
1. Paste the following snippet into the query window:
134
+
1. Paste the following snippet into the query window and click **Run**:
0 commit comments