SQL Server 2022 Express on Windows Server 2022 Datacenter

Quick Start Guide

Welcome to SQL Server 2022 Express on Windows Server 2022 Datacenter! This guide will help you get started with your new SQL Server Express instance on Google Cloud Platform

Table of Contents

Introduction

This guide provides step-by-step instructions to quick start with SQL Server 2022 Express on Windows Server 2022 Datacenter at Google Cloud Platform. You will have following within this bundle:

Key Features

Feature Description
OS version Microsoft Windows Server 2022 Datacenter (10.0.20348)
SQL Package Microsoft SQL Server 2022
SQL Edition Express
Type RTM-CU20 (KB5059390)
Version 16.0.4205.1 (X64)
Features Database Engine Services, SQL Server Replication
  Machine Learning Services and Language Extensions
Named Instance SQLEXPRESS
Clustered No

SQL Patch Level

KB5036432 - Cumulative Update 20 for SQL Server 2022 This update contains 10 fixes that were issued after the release of SQL Server 2022 Cumulative Update 19, and it updates components in the following builds:

SQL Server - Product version: 16.0.4205.1, file version: 2022.160.4205.1 Analysis Services - Product version: 16.0.43.247, file version: 2022.160.43.247 Learn more

Prerequisites

  • A Google Cloud Platform account.
  • Basic knowledge of SQL Server

Installation

  1. Deploy the Image: Follow the instructions on the Google Cloud Platform Marketplace to deploy the SQL Server 2022 Express image.
  2. Access the SQL Server as an Administrator: Access your Windows Server instance using Remote Desktop Protocol (RDP) with an administrator user.

Create a Windows administrator user on the server by setting a password. GCP Compute Engine Console Set a new Windows password

Before You Get Started

Before you can connect to your SQL Server instance from another machine, you will need to complete the following tasks:

  • Set default port TCP/IP protocol for the named SQL Server instance
  • Create firewall rules for the required ports ( We have enabled default firewall rules for you )
  • Create the necessary logins for SQL Server

Enabling TCP/IP Protocol

TCP/IP server network protocol is required to connect to this SQL Server instance from a remote machine. This requires enabling TCP/IP protocol for the SQL Server service. It has been already enabled on the deployed server.

To set a TCP/IP port for a named instance:

  1. In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration.
  2. In the console pane, click Protocols for SQLEXPRESS.
  3. In the details pane, TCP/IP protocol properties, IP Addresses, IPAll TCP Port: 1433 Set a TCP/IP port
  4. In the console pane, click SQL Server Services.
  5. In the details pane, right-click SQL Server (SQLEXPRESS), and then click Restart, to stop and restart the SQL Server service.

Named Instance

A named instance of SQL Server ( <host name> \ SQLEXPRESS) uses dynamic ports. Because SQL Express is installed then you will need to create a firewall rule for UDP port 1434 as this is the port required by named instances of SQL Server Browser Service to locate the instance on the host.

Firewall

To access an instance of the SQL Server through a firewall, you must configure the firewall on the computer that is running SQL Server to allow access. The firewall is a component of Microsoft Windows. You can also install a firewall from another company.

You could use the Powershell to create the necessary exceptions to allow connections to the SQL Server instance.

An example of a command allowing the named instance TCP port of 1433 to be used is shown below.

New-NetFirewallRule -DisplayName "SQLServer SQLEXPRESS named instance" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "SQLServer Browser service" -Direction Inbound -LocalPort 1434 -Protocol UDP -Action Allow

We have enabled default ports’ firewall rules already.

Firewall allowed apps SQL server Firewall allowed apps SQL browser

Connecting to SQL Server via SSMS

  1. Open SQL Server Management Studio (SSMS): Launch SSMS on the server as an administrator. Launch SSMS
  2. Connect to the Server:
    • Server type: Cho0se Database Engine
    • Authentication: Choose the Windows Authentication method
    • Encryption: Choose Optional
    • SSMS Windows authentication
  3. Verify the Connection: Ensure that you can connect to the SQLEXPRESS instance
  4. Execute a sample SQL Query
SELECT name FROM sys.databases WHERE database_id <= 4;
GO

SSMS Sample Query

Connecting to SQL Server via sqlcmd

  1. Open a command prompt.: Launch cmd on the server as an administrator
  2. Change Directory.: C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn>
  3. Run sqlcmd prompt:Enter sqlcmd to start the SQL command-line tool. At the sqlcmd prompt (1>), type the following query and press Enter:
SELECT name FROM sys.databases WHERE database_id <= 4;
GO

Output

name                                                                                                              
--------------------------------
master                                                                                                            
tempdb                                                                                                            
model                                                                                                             
msdb                                                                                                              

(4 rows affected)

Authentication

As part of this packaged installation, the BUILTIN\Users running the SQL Server setup has system administrator (sysadmin) privileges on the SQL Server.

Authentication

In case you need to add another Windows user as a system administrator, then this can be done using the following example.

CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS;
GO
ALTER SERVER ROLE sysadmin ADD MEMBER [<domainName>\<loginName>];
GO

Testing the Installation

To verify that SQL Server is running correctly, you can perform the following tests:

  1. Check SQL Server Services: Ensure that the SQL Server is running. SQL Server Browser services is disabled.
  2. Run a Simple Query: Open SSMS and run a sample query to test the connection and functionality:
      SELECT @@VERSION
      GO
    

SSMS Version Query


Copyright © 2025 | gClouds . All rights reserved.