1. 安装SQL Server 2019:
PS D:\> .\Setup.exe /qs /ACTION=Install /FEATURES=SQLEngine,Conn /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" /INSTANCENAME="MSSQLSERVER" /INSTANCEID="MSSQLSERVER" /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="nip\sqladmin" /SQLSVCPASSWORD="**********" /SQLSYSADMINACCOUNTS="nip\gazh" /AGTSVCACCOUNT="nip\sqladmin" /AGTSVCPASSWORD="*********" /IACCEPTSQLSERVERLICENSETERMS
Microsoft (R) SQL Server 2019 15.00.2000.05
Copyright (c) 2019 Microsoft. All rights reserved.
SQL Server 2019 transmits information about your installation experience, as well as other usage and performance data, to Microsoft to help improve the product. To learn more about SQL Server 2019 data processing and privacy controls, please see the Privacy Statement.
Notice: A paid SQL Server edition product key has been provided for the current action - Standard. Please ensure you are entitled to this SQL Server edition with proper licensing in place for the product key (edition) supplied.
One or more affected files have operations pending.
You should restart your computer to complete this process.
2. 安装更新:
SQLServer2019-KB5000642-x64.exe /qs /IAcceptSQLServerLicenseTerms /Action=Patch /INSTANCENAME="MSSQLSERVER"