Credential access
Reads database passwords, connection strings, tokens, and environment credentials.
brew
Microsoft SQL Server command-line interface. Version 1.10.0 via Homebrew; verified 2026-04-10.
agent safety
sqlcmd sends SQL to Microsoft SQL Server and Azure SQL targets.
Reads database passwords, connection strings, tokens, and environment credentials.
Can create, alter, drop, import, and export database state.
Can dump or load data artifacts containing sensitive records.
Gate write SQL, dumps, imports, and credential-bearing connection strings.
Allow safe metadata queries; require approval for writes, exports, and secret use.
install
brew install sqlcmdlocal Homebrew formula metadata
nix profile install nixpkgs#sqlcmdnixpkgs package indexes · pkgs/by-name/sq/sqlcmd/package.nix · source: api.github.com
choco install sqlcmdChocolatey community package catalog · sqlcmd · source: community.chocolatey.org
winget install --id Microsoft.Sqlcmd -eWindows Package Manager source index · Microsoft.Sqlcmd · source: cdn.winget.microsoft.com
overview
Microsoft SQL Server command-line interface
history
sqlcmd is Microsoft's command-line interface for SQL Server and Azure SQL. The Homebrew formula tracks the newer Go implementation, go-sqlcmd, which preserves much of the long-running ODBC sqlcmd workflow while adding modern package-manager distribution and container-oriented commands.
Microsoft's go-sqlcmd repository was created in 2021, and its README says the project aims to be a complete Go port of the original ODBC sqlcmd using the go-mssqldb driver.
The first preview releases appeared in 2021. The README documents both backward-compatible ODBC-style flags and newer POSIX-style flags, plus additions such as local SQL Server container creation and context management.
The Go version is explicitly packaged for major platforms: the README lists Winget, Chocolatey, Homebrew, Linuxbrew, apt, yum, zypper, and release artifacts. The input package metadata lists Homebrew, Chocolatey, Nix, and Winget identifiers.
Common usage includes running queries against SQL Server or Azure SQL, piping SQL into the CLI for scripts, creating local SQL Server containers with sqlcmd create mssql, and switching saved connection contexts stored under ~/.sqlcmd/sqlconfig.
Package nerds care about go-sqlcmd because it turns a historically vendor-installed database utility into a cross-platform package-manager CLI, bridging Windows SQL Server habits with Homebrew, Winget, Chocolatey, Linux packaging, and container-first local development.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.sqlcmd/sqlconfigCredential-bearing paths to review before unattended agent runs.
~/.sqlcmd/sqlconfigexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sqlcmd | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/microsoft/go-sqlcmd
install metadata
| Package key | brew:sqlcmd |
|---|---|
| Version | 1.10.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/sqlcmd |
| Homepage | https://github.com/microsoft/go-sqlcmd |
| Repository | https://github.com/microsoft/go-sqlcmd |
| Upstream docs | https://github.com/microsoft/go-sqlcmd#readme |
| License | MIT |
| Source archive | https://github.com/microsoft/go-sqlcmd/archive/refs/tags/v1.10.0.tar.gz |
| Last updated | 2026-04-10T21:11:12Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | sqlcmd |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
sqlcmd
nix profile install nixpkgs#sqlcmdsqlcmd
choco install sqlcmdMicrosoft.Sqlcmd
winget install --id Microsoft.Sqlcmd -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.