+> 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.
0 commit comments