凭据访问
Reads database passwords, connection strings, tokens, and environment credentials.
代理安全
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.
安装
brew install sqlcmdlocal Homebrew formula metadata
nix profile install nixpkgs#sqlcmdnixpkgs package indexes · pkgs/by-name/sq/sqlcmd/package.nix · 来源: api.github.com
choco install sqlcmdChocolatey community package catalog · sqlcmd · 来源: community.chocolatey.org
winget install --id Microsoft.Sqlcmd -eWindows Package Manager source index · Microsoft.Sqlcmd · 来源: cdn.winget.microsoft.com
概览
Microsoft SQL Server command-line interface
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/sqlconfig可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sqlcmd | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/microsoft/go-sqlcmd
安装元数据
| 软件包键 | brew:sqlcmd |
|---|---|
| 版本 | 1.10.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/sqlcmd |
| 主页 | https://github.com/microsoft/go-sqlcmd |
| 仓库 | https://github.com/microsoft/go-sqlcmd |
| 上游文档 | https://github.com/microsoft/go-sqlcmd#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/microsoft/go-sqlcmd/archive/refs/tags/v1.10.0.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sqlcmd
nix profile install nixpkgs#sqlcmdsqlcmd
choco install sqlcmdMicrosoft.Sqlcmd
winget install --id Microsoft.Sqlcmd -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.