Installing SQL Server Express @ Dhante.com

1. Synopsis

This document describes the installation procedure for SQL Server Express on Windows.

This free version will allow for DB sizes up to 10GB.

2. Download SQL Server

  • Download SQL Server Express via the SQL Server 2019 setup program.

  • Run it.

  • Then click on the Download Media button to download a self extracting .exe file which can then be stored on a file server share.

    Launch Config Manager

3. Install SQL Server

4. Configure SQL Server

4.1. Launch SQL Server 2019 Configuration Manager

  • Find and Launch SQL Server Configuration Manager:

    [Launch Config Manager]

4.2. Configure Protocols for SQLEXPRESS

  1. Enable TCP/IP

    1. Right click on Protocols for SQLExpress

    2. Expand SQL Server Network Configuration.

    3. Right click on TCP/IP

      Enable TCP/IP

    4. Click on Enable.

  2. The default port for SQL Server is 1433 but it can be set to a custom value within the TCP Port setting.

    1. Right click on TCP/IP and choose Properties.

    2. Click the IP Adresses tab.

    3. Scroll to the bottom of the window.

    4. Add the port Note: we are using a custom port:

      Port

4.3. Restart SQL Server

  1. Click on Sql Server Services

  2. Right mouse click on SQL Server (SQLEXPRESS) and choose Restart:

    Restart SQL Server

  3. The Sql Server service will be stopped and restarted:

    Restarted SQL Server

5. Configure Firewall

  1. Full document here

  2. Launch an elevated CMD prompt window.

  3. Run the netsh command. Note: if you specified a custom port in the previous state, you should specify that value here too as the localport value:

    netsh advfirewall firewall add rule name = MSSQL dir = in protocol = tcp action = allow localport = 1285 remoteip = localsubnet profile = DOMAIN

6. Install SQL Server Management Studio (SSMS)

  • Install SSMS on the server that hosts the SQL Server and on any number of desktops.

6.1. Download SSMS

  • Download from here

6.2. Connect via SSMS

  • Launch SSMS

  • Connect to the SQLExpress named instance

    Connect to SQL Server

7. Set Database Default Location

  1. This step is optional

  2. Connect to the the SQL Server via SqlServer Management Studio

  3. Right mouse click on the server name and select Server Properties.

    Server Properties

  4. Change DB Settings

    Server Properties

  5. Even after making the changes, the gui will still reflect the old values until the SQL Server is restarted.

  6. Restart SQL Server

    This operation may have to be completed on the server that hosts the SQL Server.

    Server Properties

    Server Properties

    Server Properties

  7. Confirm changes have been made:

    Server Properties