Skip to content

Commit 3186939

Browse files
authored
Update docs/tools/sqlcmd/go-sqlcmd-utility.md
1 parent 5b7adcf commit 3186939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/tools/sqlcmd/go-sqlcmd-utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The **go-sqlcmd** utility lets you enter Transact-SQL statements, system procedu
1919
**go-sqlcmd** is open source under the MIT license and available on [GitHub](https://github.com/microsoft/go-sqlcmd). As a CLI, **go-sqlcmd** is ideal for pipelines and edge applications as it has no additional dependencies and supports various environment configurations. The capabilities of **go-sqlcmd** expand beyond the ODBC-based [sqlcmd](sqlcmd-utility.md) to incorporate a [vertical output format](#enhancements) and extensive [Azure Active Directory authentication](#azure-active-directory-authentication) options.
2020

2121
> [!NOTE]
22-
Installing **go-sqlcmd** via a package manager will replace [sqlcmd](sqlcmd-utility.md) with **go-sqlcmd**. Any current command line sessions will need to be closed and reopened for this take to effect. [sqlcmd](sqlcmd-utility.md) will not be removed and can still be used by specifying the full path to the executable. You can also update your PATH variable to indicate which will take precedence. To do so in Windows 11, open System settings and go to About. Select Advanced system settings. When System Properties opens, select the Environment Variables button. In the lower half, under System variables, select Path and then the Edit button. If the location **go-sqlcmd** is saved to (C:\Program Files\SqlCmd is default) is listed before C:\Program Files\Microsoft SQL Server\<version>\Tools\Binn then **go-sqlcmd** will be used. Simply reverse the order to make the [sqlcmd](sqlcmd-utility.md) the default again.
22+
> Installing **go-sqlcmd** via a package manager will replace **[sqlcmd](sqlcmd-utility.md)** with **go-sqlcmd** in your environment path. Any current command line sessions will need to be closed and reopened for this take to effect. **sqlcmd** won't be removed and can still be used by specifying the full path to the executable. You can also update your `PATH` variable to indicate which will take precedence. To do so in Windows 11, open **System settings** and go to **About > Advanced system settings**. When **System Properties** opens, select the **Environment Variables** button. In the lower half, under **System variables**, select **Path** and then select **Edit**. If the location **go-sqlcmd** is saved to (`C:\Program Files\sqlcmd` is default) is listed before `C:\Program Files\Microsoft SQL Server\<version>\Tools\Binn`, then **go-sqlcmd** is used. You can reverse the order to make **sqlcmd** the default again.
2323
2424
Review the [breaking changes from sqlcmd](#breaking-changes-from-sqlcmd) section in this article before installing via a package manager, to make sure that existing scripts aren't impacted. If you're unsure, consider the direct download option, which allows you to download the **go-sqlcmd** executable to a directory of your choice. You can then run **go-sqlcmd** from that directory, or by specifying the full path to the executable. This option doesn't update any system settings.
2525

0 commit comments

Comments
 (0)