Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install SQL Server 2022 on Windows

Install the SQL Server 2022 Database Engine, choose instance and authentication settings, configure storage, and verify a connection with SQL Server Management Studio.

Table of Contents

To install SQL Server 2022 on Windows, obtain the correct edition’s installation media, run Setup as an administrator, configure the Database Engine and then test a connection in SQL Server Management Studio (SSMS). This guide covers a new stand-alone instance, rather than an upgrade or failover cluster.

Before you start

  • Check Microsoft’s SQL Server 2022 requirements, including edition-specific Windows support, disk space and an x64 processor. Minimum installation requirements are not a production sizing plan.
  • Choose an edition and licence appropriate to the workload. Developer is for development and testing, not production. Express has resource and feature limits.
  • Complete pending Windows restarts. Back up existing databases and configuration before changing a machine that already hosts SQL Server.
  • Plan the instance name, administrators, authentication, collation and storage locations. Microsoft advises against installing SQL Server on a domain controller.

If an application such as Juris will use the instance, follow its supported-version and configuration requirements. The Juris instance name in these screenshots is an example, not a requirement for SQL Server generally. Screen order may vary with edition and installation media.

Install the Database Engine

1. Obtain and open the installation media

Use Microsoft’s official download or your organization’s licensed media for SQL Server 2022. If using a download launcher, choose Custom, select a media location and let it download the files. A full ISO or extracted media can be opened directly. Run setup.exe with administrator privileges.

SQL Server 2022 Installation Guide Picture 1

2. Start a new stand-alone installation

In SQL Server Installation Center, select Installation, then New SQL Server stand-alone installation or add features to an existing installation. Choose a new instance when prompted; adding features to an existing instance is a different operation.

SQL Server 2022 Installation Guide Picture 2

SQL Server 2022 Installation Guide Picture 3

3. Select the edition and resolve setup rules

Enter the appropriate product key or select the edition offered by your media. Review the licence terms and accept them only if they meet your intended use. Allow required setup files and updates to install.

SQL Server 2022 Installation Guide Picture 4

Inspect Install Rules. Resolve failures before continuing. A Windows Firewall warning deserves review if clients will connect remotely; it is not a reason to disable the firewall or open every port.

SQL Server 2022 Installation Guide Picture 5

4. Review any Azure integration option

If your media presents Azure Extension for SQL Server, configure it only when you intend to connect the server to Azure and have the necessary subscription and permissions. Otherwise, clear the option where available. The page is not a generic prompt to enter credentials for a purchased extension, and it may not appear with every setup version.

SQL Server 2022 Installation Guide Picture 6

5. Choose features and the instance name

Select Database Engine Services for a standard relational database installation. Add features only when the application or workload requires them. SSMS is installed separately.

SQL Server 2022 Installation Guide Picture 7

Choose a default instance or a named instance. The default instance is identified as MSSQLSERVER and is normally addressed by the computer name. A named instance is addressed as COMPUTERINSTANCE. Record the name for later connection attempts.

SQL Server 2022 Installation Guide Picture 8

6. Review service accounts and collation

On Server Configuration, use service accounts appropriate to the deployment and review startup settings. The Database Engine must run for connections to work. SQL Server Browser is not required for every installation; its use depends on how clients locate the instance.

Check the Collation tab against application requirements before continuing. Changing collation later can require substantial work.

SQL Server 2022 Installation Guide Picture 9

7. Configure authentication and administrators

On Database Engine Configuration, choose Windows Authentication unless SQL logins are required. If you choose Mixed Mode, set a strong password for the built-in sa account.

Add at least one intended SQL Server administrator. Add Current User adds the account running Setup, so verify that this is the account you want to administer the instance. Applications should use accounts with the permissions they need rather than routinely using sa.

SQL Server 2022 Installation Guide Picture 10

8. Review database, log and tempdb storage

Use the Data Directories and TempDB tabs to set locations with sufficient capacity and suitable permissions. For a learning machine, the defaults may be adequate. Production storage should reflect workload, backup and recovery needs.

SQL Server 2022 Installation Guide Picture 11

SQL Server 2022 Installation Guide Picture 12

Separating data, logs and tempdb can help when the underlying storage provides independent resources. Different folder names or drive letters alone do not guarantee better performance. Avoid assuming that all network storage is unsupported; supported configurations depend on Microsoft’s requirements.

Review Setup’s memory and MaxDOP recommendations for the machine and workload. Leave FILESTREAM disabled unless required. There is no universal setting that fits every server.

9. Complete the installation

Review Ready to Install, then select Install. On the completion page, confirm that Database Engine Services succeeded. Save the summary and inspect setup logs for any failed component. Restart if requested.

Install SSMS and verify a connection

  1. Install SSMS using Microsoft’s official installer.
  2. Open SSMS and choose a Database Engine connection.
  3. For a local default instance, enter localhost. For a named instance, enter localhostINSTANCE, replacing INSTANCE with the name recorded during Setup.
  4. Use an authentication method and account configured for the instance, then connect.
  5. Open New Query and run the read-only query below.
SELECT @@VERSION AS SQLServerVersion;

A returned version string confirms that the connection and query succeeded. Verify that it identifies SQL Server 2022. For subsequent work, see TipsMake’s basic database operations. If you are maintaining an older system, use the separate SQL Server 2019 installation guide.

If the connection fails

  • Instance not found: check the instance name and that its Database Engine service is running.
  • Login failed: confirm the selected authentication mode and that the account has a server login.
  • Certificate error: review the server certificate and client trust configuration. For production, use a certificate trusted by clients rather than broadly bypassing validation.
  • Remote connection fails: first confirm local access, then check enabled protocols, the configured port and narrowly scoped firewall rules.

Microsoft’s connection quickstart provides further diagnostics. Before production use, also configure backups, appropriate memory limits and supported SQL Server servicing updates.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.