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/linux/quickstart-install-connect-ubuntu.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
@@ -11,7 +11,7 @@ ms.technology: database-engine
11
11
---
12
12
# Install SQL Server and create a database on Ubuntu
13
13
14
-
In this quick start tutorial, you first install SQL Server 2017 CTP 2.1 on Ubuntu 16.04. Then connect with **sqlcmd** to create your first database.
14
+
In this quick start tutorial, you first install SQL Server 2017 CTP 2.1 on Ubuntu 16.04. Then connect with **sqlcmd** to create your first database and run queries.
15
15
16
16
## Prerequisites
17
17
@@ -95,7 +95,7 @@ To create a database, you need to connect with a tool that can run Transact-SQL
95
95
> [!TIP]
96
96
> **Sqlcmd** is just one tool for connecting to SQL Server to run queries and perform management and development tasks. Other tools include [SQL Server Management Studio](sql-server-linux-develop-use-ssms.md) and [Visusal Studio Code](sql-server-linux-develop-use-vscode.md).
97
97
98
-
## Connect to SQL Server on Linux
98
+
## Connect locally
99
99
100
100
The following steps use **sqlcmd** to locally connect to your new SQL Server instance.
101
101
@@ -115,7 +115,10 @@ The following steps use **sqlcmd** to locally connect to your new SQL Server ins
115
115
116
116
1. If you get a connection failure, first attempt to diagnose the problem from the error message. Then review the [connection troubleshooting recommendations](sql-server-linux-troubleshooting-guide.md#connection).
117
117
118
-
## Create a database
118
+
## Create and query data
119
+
The following sections walk you through using **sqlcmd** and Transact-SQL to create a new database, add data, and run a simple query.
120
+
121
+
### Create a new database
119
122
120
123
The following steps create a new database named `TestDB`.
121
124
@@ -137,7 +140,7 @@ The following steps create a new database named `TestDB`.
137
140
GO
138
141
```
139
142
140
-
## Insert data
143
+
###Insert data
141
144
142
145
Next create a new table, `Inventory`, and insert two new rows.
143
146
@@ -165,7 +168,7 @@ Next create a new table, `Inventory`, and insert two new rows.
165
168
GO
166
169
```
167
170
168
-
## Select data
171
+
###Select data
169
172
170
173
Now, run a query to return data from the `Inventory` table.
171
174
@@ -181,7 +184,7 @@ Now, run a query to return data from the `Inventory` table.
0 commit comments