From 664d02ab91b46f7f5a6fcf6d967adff8e42ba0ec Mon Sep 17 00:00:00 2001 From: JuanXhod <123758906+CODE-G-ROOT@users.noreply.github.com> Date: Fri, 27 Dec 2024 17:13:00 -0500 Subject: [PATCH] fix: Incorrect path for mssql-tools in Readme The SQL Server Docker image documentation specifically (2017:latest, 2019:latest, 2022:latest) the path to the `sqlcmd` tool as `/opt/mssql-tools/bin/sqlcmd`. However, the correct path is `/opt/mssql-tools18/bin/sqlcmd`. This commit updates the documentation to reflect the correct directory path, preventing errors when users attempt to run `sqlcmd` inside the container. --- linux/preview/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/preview/README.md b/linux/preview/README.md index 22e74d62..0d901af1 100644 --- a/linux/preview/README.md +++ b/linux/preview/README.md @@ -60,7 +60,7 @@ $ make run ## Connect to Microsoft SQL Server Starting with the CTP 1.4 (March 17, 2017) release the mssql-tools package including sqlcmd, bcp are included in the image. You can connect to the SQL Server using the sqlcmd tool inside of the container by using the following command on the host: ``` -docker exec -it /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P +docker exec -it /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P ``` You can also use the tools in an entrypoint.sh script to do things like create databases or logins, attach databases, import data, or other setup tasks. See this example of [using an entrypoint.sh script to create a database and schema and bcp in some data](https://github.com/twright-msft/mssql-node-docker-demo-app).