Install SQL Server 2022: Step-by-step Guide

Here is a simple step-by-step guide on how to install SQL Server 2022 with screenshots.

Before the installation:

  • Make sure you have admin access to the server to install SQL Server 2022
  • Format SQL files keeping drives with 64k for better performance
Install_SQL_server_2022_1
  • Restart the server before starting to install (this installs any pending updates waiting for restart)
  •   Copy SQL Server 2022 setup files to the server. Download from Microsoft website

Installing SQL Server 2022:

Mount SQL Server 2022 ‘.ISO’ file

Install_SQL_server_2022_2
  • Right-click on the ‘setup.exe’ file and hit ‘Run as administrator’
Install_SQL_Server_2022_3
  • From the SQL Server Installation Center on the left ‘Installation’ option select ‘New SQL Server stand-alone installation or add features to existing installation
Install_SQL_Server_2022_4
  • The setup wizard will open, select as per your requirement in our case it is for production so we are going with the enterprise edition. Hit ‘Next’ for another page
Install_SQL_Server_2022_5
  • Just accept the license terms and hit ‘Next
Install_SQL_Server_2022_6
  • Microsoft Update: Click ‘Next’ as it is an SQL database server and is not exposed to the internet
Install_SQL_Server_2022_7
  • Ignore the warnings related to the firewall, we can add port details post-SQL Server 2022 installation.
Install_SQL_Server_2022_8
  • We are installing SQL Server 2022 in-prim so Azure extensions are not necessary. Uncheck ‘Azure Extension for SQL Server’ and hit ‘Next
Install_SQL_Server_2022_9
  • In Feature Selection, for us, we only required a database engine and we are keeping binaries in C drive and hit ‘Next
Install_SQL_Server_2022_10
  • Instance Name selection: we are going with the default instance, hit ‘Next’
Install_SQL_Server_2022_11
  • In the Server Configuration section, we have two tabs, refer below then hit ‘Next
  • Service Accounts: Give if you want to run SQL Server services under any particular service account
  • Collation: Specify if you need to change collation (we are going with default)
Install_SQL_Server_2022_12
  • Database Engine Configuration: In this level, we have six tabs to attend. Refer below guidance and then hit ‘Next
  • Server Configuration: We need mixed mode (both Windows and SQL), specify and note down the ‘sa’ password. Add current user or any DBA group who needs sysadmin permission
Install_SQL_Server_2022_13
  • Data Directories: We are not changing the data root directory but the data files, log files, and backup files directory changed to another drive (D)
Install_SQL_Server_2022_14
  • Not changing any of the other tabs as keeping all default values
  • Ready to Install: SQL Server 2022 is ready to install just hit ‘Install
Install_SQL_Server_2022_15
  • Installation under progress
Install_SQL_Server_2022_16
  • SQL Server 2022 has been installed successfully.
Install_SQL_Server_2022_17

Before connecting to the installed SQL Server:

  • Check from SQL Server Configuration Manager 2022, TCP/IP should be Enabled
Install_SQL_Server_2022_18
  • Add port 1433 (default SQL port) to the firewall in the Inbound Rules
Install_SQL_Server_2022_19

Leave a Reply