在 Docker 容器 (image = mcr.microsoft.com/windows/servercore:ltsc2019
) 中,我下载了 SQL Server Express 2019 安装程序。
我已经成功下载了 LocalDB msi:
SQL2019-SSEI-Expr.exe /Action=Download /MediaType=LocalDB /Quiet
文件下载到:
C:\Users\ContainerAdministrator\Downloads\en-us\SqlLocalDB.msi
但是...运行msiexec
失败,没有任何错误消息。导航到上述路径后,我执行:
msiexec.exe /qb /i .\SqlLocalDB.msi IAcceptSqlLocalDBLicenseTerms=YES
该命令在零延迟后立即返回命令行。什么都没有安装。
我错过了什么?
编辑: 我正在尝试使用 LocalDB,因为这最终将成为 Azure Pipelines 构建代理。我们使用使用 LocalDB 的 Redgate 的“SqlChangeAutomation”powershell 工具。
编辑 2:
不确定这是否是进展,但是......我用 msiexec 记录了一下,发现我可以用/a
标志运行它,而不是/i
让它成功安装。
msiexec.exe /qn /a SqlLocalDB.msi IAcceptSqlServerLicenseTerms=YES /L*V "C:\installers\SQL\install.log"
然而不幸的是,在导航到C:\Program Files\Microsoft SQL Server\150\tools\binn
并运行SqlLocalDB.exe info
时,我得到了这个:
Call to LocalDBFormatMessage failed. Error code returned:
2311389462.
Error in LocalDBFormatMessage! Error code returned:
2311389462.