Skip to content

Commit 6919c5c

Browse files
committed
SQL Server 2017 doesn't use the new tools library
1 parent 3c038b5 commit 6919c5c

1 file changed

Lines changed: 45 additions & 2 deletions

File tree

docs/linux/quickstart-install-connect-docker.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ The following table provides a description of the parameters in the previous `sq
331331

332332
1. As a final step, [change your SA password](#sapassword) in a production environment, because the `MSSQL_SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name.
333333

334-
---
335-
336334
::: moniker-end
337335

338336
<!--SQL Server 2019 on Linux-->
@@ -908,6 +906,49 @@ The following steps use the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-m
908906

909907
::: zone-end
910908

909+
<!--SQL Server 2017 on Linux-->
910+
::: moniker range="= sql-server-linux-2017 || = sql-server-2017"
911+
912+
1. Once inside the container, connect locally with **sqlcmd**, using its full path.
913+
914+
```bash
915+
/opt/mssql-tools/bin/sqlcmd -S localhost -U <userid> -P "<YourNewStrong@Passw0rd>"
916+
```
917+
918+
> [!NOTE]
919+
> Newer versions of **sqlcmd** are secure by default. For more information about connection encryption, see [sqlcmd utility](../tools/sqlcmd/sqlcmd-utility.md) for Windows, and [Connecting with sqlcmd](../connect/odbc/linux-mac/connecting-with-sqlcmd.md) for Linux and macOS. If the connection doesn't succeed, you can add the `-No` option to **sqlcmd** to specify that encryption is optional, not mandatory.
920+
921+
You can omit the password on the command-line to be prompted to enter it. For example:
922+
923+
```bash
924+
/opt/mssql-tools/bin/sqlcmd -S localhost -U <userid>
925+
```
926+
927+
::: moniker-end
928+
929+
<!--SQL Server 2019 on Linux-->
930+
::: moniker range="= sql-server-linux-ver15 || = sql-server-ver15"
931+
932+
1. Once inside the container, connect locally with **sqlcmd**, using its full path.
933+
934+
```bash
935+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U <userid> -P "<YourNewStrong@Passw0rd>"
936+
```
937+
938+
> [!NOTE]
939+
> Newer versions of **sqlcmd** are secure by default. For more information about connection encryption, see [sqlcmd utility](../tools/sqlcmd/sqlcmd-utility.md) for Windows, and [Connecting with sqlcmd](../connect/odbc/linux-mac/connecting-with-sqlcmd.md) for Linux and macOS. If the connection doesn't succeed, you can add the `-No` option to **sqlcmd** to specify that encryption is optional, not mandatory.
940+
941+
You can omit the password on the command-line to be prompted to enter it. For example:
942+
943+
```bash
944+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U <userid>
945+
```
946+
947+
::: moniker-end
948+
949+
<!--SQL Server 2022 on Linux-->
950+
::: moniker range="= sql-server-linux-ver16 || = sql-server-ver16"
951+
911952
1. Once inside the container, connect locally with **sqlcmd**, using its full path.
912953

913954
```bash
@@ -923,6 +964,8 @@ The following steps use the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-m
923964
/opt/mssql-tools18/bin/sqlcmd -S localhost -U <userid>
924965
```
925966

967+
::: moniker-end
968+
926969
1. If successful, you should get to a **sqlcmd** command prompt: `1>`.
927970

928971
## Create and query data

0 commit comments

Comments
 (0)