Installing Microsoft SQL Server 2022 on the Database Server
This task describes how to install Microsoft SQL Server 2022 on the database server. You may need to reboot your server after the installation.
Note:
There are different editions of Microsoft SQL Server 2022. Make sure that the edition you install is appropriate for your requirements. Some editions are not compatible with certain operating systems. Consult the SQL Server online documentation and Microsoft support for information about editions. If you have an existing Microsoft SQL Server installation, you can check the version on the SQL Server Installation Center by selecting Tools, Installed SQL Server features discovery report.
To install Microsoft SQL Server 2022 on the database server:
-
If you want to uninstall your previous Microsoft SQL Server software before installing Microsoft SQL Server 2022, you can use Control Panel, Add/Remove Programs.
Note:
We recommend that you install only one SQL Server version per server. This should simplify the administration. However, in some instances you may need to install multiple versions, and it is possible to have side-by-side installations of Microsoft SQL Server 2022 and earlier versions.
-
If you downloaded the Microsoft SQL Server 2022 installation files, go to the directory where you saved the installation files and run
setup.exe.If you obtained the installation files on a DVD, insert the Microsoft SQL Server 2022 DVD into the DVD drive. The installation should start automatically, but if it does not, run
setup.exefrom the DVD-ROM's directory.For both installation methods, an initialization message box appears asking you to wait. After initialization is complete, the SQL Server Installation Center window appears.
-
Select the Installation link in the left-hand navigation tree.
Figure 27-1 SQL Server Installation Center Planning window

-
In the frame on the right, select the link New SQL Server stand-alone installation or add features to an existing installation, which is the first link in this example:
Figure 27-2 SQL Server Installation Center Installation window

A message box appears asking you to wait while Microsoft SQL Server 2022 Setup processes the current operation.
After the process is complete the Product Key window appears.
-
Enter your product key value and select the option that describes your license.
Choose the option for either “I have a SQL Server license with Software Assurance or SQL Software Subscription” or “I have a SQL Server license only.”
If the product key value field is already populated, ignore this step and click Next to continue to the License Terms window. In this example the field for Enter the product key is blank:
Figure 27-3 SQL Server 2022 Setup: Product Key window

-
Read the terms and conditions carefully and select the check box I accept the license terms, as shown in this example:
Figure 27-4 SQL Server 2022 Setup: License Terms window

-
Click Next.
The Global Rules window appears. Wait until the process verifying global rules is complete. Verify that all the rules have passed, as shown in the Status column in this example:
Note:
If all of the rules pass, the process may bypass this window. You can click Back if you want to review it.
Figure 27-5 SQL Server 2022 Setup: Global Rules window

-
Click Next.
The Microsoft Update window appears. Clear the check box for “Use Microsoft Update to check for updates (recommended)”, as shown in this example:
Figure 27-6 SQL Server 2022 Setup: Microsoft Update window

-
Click Next.
The Install Setup Files window appears. Wait until the progress bar indicates that the process to install setup files and scan for product updates is complete.
-
Click Next.
The Install Rules window appears. The setup operation checks for problems that might occur when you install support files. Click Show Details.
-
Verify that all of the listed Rules display Passed in the Status column, as shown in this example.
If any one of the rules has not passed, select the link in the Status column to check the reason for the failure.
Note:
If all of the rules pass, the process may bypass this window. You can click Back if you want to review it.
Figure 27-7 SQL Server 2022 Setup: Install Rules window

-
Clear the check box for Azure Extension for SQL Server and click Next.
Figure 27-8 SQL Server 2022 Setup: Azure Extension for SQL Server window

-
A Feature Selection window appears that lists all the features of Microsoft SQL Server 2022 that are available to be installed.
This example shows the Feature Selection window with the features required for a PeopleSoft installation selected. These features are listed following the example.
Figure 27-9 SQL Server 2022 Setup: Feature Selection window

For your PeopleSoft installation, select Database Engine Services.
-
Clear the check boxes beside the remaining features.
-
Click Next.
The Feature Rules window appears, and the setup operation runs rules to determine whether the installation will be blocked.
-
Click Show Details on the Feature Rules window.
Verify that all of the listed Rules display Passed in the Status column. If any one of them has not passed, select the link in the Status column to check the reason for the failure.
Note:
If all of the rules pass, the process may bypass the window. You can click Back if you want to review it.
-
Click Next.
The Instance Configuration window appears. Enter SQL2022 as the named instance and the Instance ID, as shown in this example. The window also displays the SQL Server directory, in this example C:\Program Files\Microsoft SQL Server\MSSQL16.SQL2022.
Figure 27-10 SQL Server 2022 Setup: Instance Configuration window

-
Click Next.
The Server Configuration window appears, as shown in this example.
Figure 27-11 SQL Server 2022 Setup: Server Configuration window

-
Specify the service accounts in the Account Name fields.
This example uses the same account for the Database Engine and Agent, however, be aware that Microsoft recommends that you configure each of the SQL Server services separately.
Figure 27-12 SQL Server 2022 Setup: Server Configuration window

-
Enter system as the account name for SQL Server Agent and SQL Server Database Engine to use the local system account.
Do not use a domain user account.
-
Select Manual startup type for SQL Server Agent.
-
Select Automatic startup type for SQL Server Database Engine.
-
Select Automatic startup type for SQL Server Browser.
-
-
Still on the Server Configuration window, select the Collation page.
This example shows the default collation, SQL_Latin1_General_CP1_CI_AS.
Figure 27-13 SQL Server 2022 Setup: Server Configuration window, Collation page

-
Click Customize to change the collation.
On the Customize the SQL Server 2022 Database Engine Collation window, select the option Windows collation designator and sort order. Select Latin1_General from the Collation designator drop-down list, and select the Binary option, as shown in this example:
Figure 27-14 Customize the SQL Server 2022 Database Engine Collation window

Selecting these options changes the collation to Latin1_General_BIN. Your collation designation may vary if you are not using English.
-
Click OK.
Verify on the Server Configuration Collation page that the collation is Latin1_General_BIN, Latin1-General, binary sort, as shown in this example:
Figure 27-15 SQL Server 2022 Setup: Server Configuration window, Collation page after updating

-
Click Next.
The Database Engine Configuration window appears as shown in this example:
Figure 27-16 SQL Server 2022 Setup: Database Engine Configuration window

On the Server Configuration page, specify the following:
-
Select the Mixed Mode (SQL Server authentication and Windows authentication) option in the Authentication Mode area.
-
Enter and confirm a secure Microsoft SQL Server administrator (sa) password.
The password must meet password policy requirements given in the Microsoft documentation for SQL Server 2022.
-
Click Add Current User to add the user under whose account the setup is running.
The current user shown in the example is USERNAME.
-
-
Still on the Database Engine Configuration window, select the Data Directories page.
Microsoft recommends that the directories included on this page reside in different locations. Ensure that the User database directory and the User database log directory are located in separate directories. In addition, the Backup directory should be in a separate location if possible. In this example, the User database directory is UserData, the User database log directory is UserDataLog, and the Backup directory is Backup. These three directories, and the Data directory, reside under C:\Program Files\Microsoft SQL Server\MSSQL16.SQL2022\MSSQL.
Figure 27-17 SQL Server 2022 Setup: Database Engine Configuration window, Data Directories page

Consult the Microsoft support site, support.microsoft.com, for recommendations and best practices for the physical layout of database files, transaction log files, and temp DB.
-
Select the TempDB page.
Ensure that the temp database data and log files are in separate directories. In this example, the temp database data directory is C:\Program Files\Microsoft SQL Server\MSSQL16.SQL2022\MSSQL\Data, and the log directory is C:\Program Files\Microsoft SQL Server\MSSQL16.SQL2022\MSSQL\TempDataLog.
Figure 27-18 SQL Server 2022 Setup: Database Engine Configuration window, TempDB page

-
Click Next.
The Feature Configuration Rules window appears. The setup operation runs rules to determine whether the installation will be blocked. Wait until the operation is complete, and then click Show details. Verify that all of the rules have Passed in the Status column, as shown in this example. If any rule does not pass, click the link in the Status column to check the reason for the failure.
Note:
If all of the rules pass, the process may bypass this window. You can click Back if you want to review it.
Figure 27-19 SQL Server 2022 Setup: Feature Configuration Rules window

-
Click Next.
The Ready to Install window appears with a summary of the features and settings that you have selected, as shown in this example. Select Install to proceed or Back to go back and correct a setting.
Figure 27-20 SQL Server 2022 Setup: Ready to Install window

A window appears showing the progress of the installation. The installation requires 10-15 minutes, and may depend upon your system configuration.
-
Wait for all the components to install successfully.
All of the components should show a status of Succeeded as shown in this example. If any one of them shows a status of Failed select the status link to check the reason for the failure.
You may see a message instructing you to restart your computer, as in the example.
Figure 27-21 SQL Server 2022 Setup: Complete window

The window also includes the location of the setup log files (<identifier> is a string including a timestamp):
C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\<identifier>\Summary<identifier>.txt