Installation Guide for SQL Server 2019

July 9, 2024

5
(1)

Installation Guide for SQL Server 2019

SQL Server

SQL Server 2019 is a robust relational database management system (RDBMS) that empowers businesses to store, manage, and analyze data efficiently. Whether you’re a developer, database administrator, or IT professional, this comprehensive guide will walk you through the installation process of SQL Server 2019 on your Windows system.

Why Choose SQL Server 2019?

  • Enhanced Performance: SQL Server 2019 boasts significant performance improvements, including faster query processing and improved memory management.
  • Intelligent Query Processing: Leverage intelligent query processing features for optimized query performance and efficient data processing.
  • Advanced Security: Protect your sensitive data with enhanced security features like Always Encrypted and Transparent Data Encryption.
  • High Availability: Ensure business continuity with features like Always On Availability Groups and Failover Cluster Instances.
  • Scalability: Easily scale your database to accommodate growing data volumes and workloads.

Prerequisites

Before you begin the installation, ensure your system meets the following requirements:

  • Supported Operating Systems: Windows 10, Windows Server 2016, or Windows Server 2019.
  • Hardware Requirements: Minimum 4 GB RAM, 6 GB of available hard disk space.
  • .NET Framework: .NET Framework 4.6 or later.

Installation Steps

  1. Download SQL Server 2019: Download the SQL Server 2019 installation media from the Microsoft website. You can choose between the Express, Developer, Standard, or Enterprise edition based on your requirements.
    SQL Server2
  2. Launch the Installer: Run the downloaded executable file to launch the SQL Server Installation Center.
  3. Choose Installation Type: Select “New SQL Server stand-alone installation or add features to an existing installation.”
    SQL Server3
  4. Accept License Terms: Read and accept the license terms and conditions.
  5. Feature Selection: Choose the features you want to install, such as Database Engine Services, Analysis Services, Reporting Services, or Integration Services.
    SQL Server4
  6. Instance Configuration: Configure the instance ID and installation directory.
  7. Server Configuration: Specify the service accounts and collation settings.
  8. Database Engine Configuration: Choose the authentication mode (Windows or Mixed Mode) and configure the data directories.
  9. Analysis Services Configuration: Configure the Analysis Services mode (Multidimensional or Tabular) and specify the data directories.
  10. Installation Progress: Monitor the installation progress as the selected features are installed.
  11. Complete: Once the installation is complete, you can launch SQL Server Management Studio (SSMS) to connect to your SQL Server instance and start managing your databases.

Install SQL Server 2019

Windows Directory

  1. To start the install, double click on setup.exe and the first screen will open
SQL Server 2019 Install Screen 1

SQL Server Installation Center

  1. Choose ‘Installation’ from the list on the left side to go to the next screen
SQL Server 2019 Install Screen 2

Installation

  1. Choose ‘New SQL Server stand-alone installation or add features to an existing installation’ from the list on the right side
SQL Server 2019 Install Screen 3

Product Key

  1. Enter SQL Server 2019 product key or use the free edition
  2. Next
SQL Server 2019 Install Screen 4

License Terms

  1. Check ‘I accept the license terms…’
  2. Next
SQL Server 2019 Install Screen 5

Microsoft Update

  1. Check ‘Use Microsoft Update to check for updates’ if you want to automatically check, otherwise leave unchecked
  2. Next
SQL Server 2019 Install Screen 6

Install Rules

  1. If there are any issues, click on Warning to get more information.  Below the Warning provides a link to what ports need to be open if the Windows Firewall service is running on the machine that you’re installing the SQL Server on
  2. Next
SQL Server 2019 Install Screen 7

Feature Selection

  1. Check off ‘Database Engine Services’ (you would check off any additional features you’re installing here but to keep it simple for this tip we’ll only be installing the database engine)
  2. Change drives from the default of C:\ otherwise you’ll end up installing everything on C:\
  3. Next
SQL Server 2019 Install Screen 8

Instance Configuration

  1. Leave ‘Default instance’ radio button selected to install as the primary instance
  2. Next
SQL Server 2019 Install Screen 9

Server Configuration

  1. Enter Windows Active Directory service account names you want to run the services as
  2. Set SQL Server SQL Agent and SQL Server Database Engine Startup Type to Automatic to avoid the services not starting on a reboot
  3. Check on ‘Grant Perform Volume Maintenance Task privilege to SQL Server Engine Service’ –  Instant File Initialization (IFI) speeds up file writes by reclaiming disk space without filling that space with zeros – further information on IFI can be found here: Database Instant File Initialization, here: Check SQL Server Instant File Initialization for all Servers and here: Enable SQL Server Instant File Initialization for Time Saving
  4. Next
SQL Server 2019 Install Screen 10

Database Engine Configuration

  1. Leave the ‘Windows authentication mode’ radio button checked unless you’re sure you need SQL Authentication logins, otherwise select ‘Mixed Mode’ and enter and confirm strong password for the sa login – if in doubt, changing to ‘Mixed Mode’ is easily done after the install – additional information on SQL Server authentication can be found here: Choose an Authentication Mode and here: How to check SQL Server Authentication Mode using T SQL and SSMS
  2. ‘Add Current User’ to make the current Windows account a SQL Server Administrator – Use ‘Add…’ to add additional logins to the sysadmin security group judiciously as anyone in this group has full rights over the SQL Server and this should not be granted without thought
  3. Click ‘Data Directories’ tab
SQL Server 2019 Install Screen 11

Data and Backup Directories

  1. Configure your database and backup directories – ideally these are all on separate drives
  2. Click TempDB tab
SQL Server 2019 Install Screen 12

TempDB Configuration

  1. User defined database file sizes are somewhat dependent on workload and as in previous steps we’re installing this on a laptop, but we would normally want Tempdb data and log files on their own volume
  2. Verify ‘Number of files’ = number of CPU cores in machine up to 8
  3. Click MaxDOP tab
SQL Server 2019 Install Screen 13

MAXDOP Configuration

  1. Verify ‘Maximum degree of parallelism (MaxDOP)’ = number of CPU cores in machine – additional information on MaxDOP can be found here: Configure the max degree of parallelism Server Configuration Option and here: What MAXDOP setting should be used for SQL Server
  2. Click Memory tab
SQL Server 2019 Install Screen 14

Memory Configuration

  1. Select ‘Recommended’ radio button
  2. The machine we’re installing this on only has 5,120 MB (5 GB) of memory and the general rule of thumb is to leave 4096 MB (4 GB) for the operating system – 5,120 MB – 4,096 MB = 1,024 MB so we enter 1024 in the ‘Max Server Memory (MB)’ box – SQL Server will try to get as much memory as it thinks it needs and setting this limit on it ensures the operating system won’t starve for memory
  3. Check ‘Click here to accept the recommended memory configurations for the SQL Server Database Engine’ box
  4. Next
SQL Server 2019 Install Screen 15

Ready to Install

  1. Verify configuration
  2. Install
SQL Server 2019 Install Screen 16

Complete

  1. Click link to open setup log file and review for any issues
  2. Close
SQL Server 2019 Install Screen 17

Close SQL Server Installation Center

  1. Click the X to close setup screen
SQL Server 2019 Install Screen 18

Apply Latest SQL Server Cumulative Update

At this point we now have an installed and working SQL Server. However, we are only at the ‘Release to Manufacturing’ (RTM), or basically unpatched patch level. There have been updates since RTM that need to be installed. Previously SQL Server updates consisted of Service Packs (SP) and Cumulative Updates (CU) that had fixes since the latest Service Pack was of SQL Server 2017 there are no more Service Packs, just GDRs (security patches) and CUs applied to the RTM level SQL Server which makes patching a bit easier.

To obtain the latest CU we start here: Latest updates for Microsoft SQL Server and this brings us to the Latest updates for Microsoft SQL Server page. Scrolling down to the ‘Latest updates’ section we find our version then go over to ‘Latest cumulative update’ which is CU6 as of this writing and click on the link.

Obtain CU Screen 1

The link brings us to options for obtaining the CU. I chose the Microsoft Download Center by clicking on that link.

Obtain CU Screen 2

Which in turn brought me to the download page where you click on the Download button.

Obtain CU Screen 3

Wait for the download to complete and double click on the click on the downloaded .exe file to start the CU update.

License Terms

  1. Check off ‘I accept the license terms…’
  2. Click Next
Apply CU Screen 1

Select Features

  1. Select Instance you’re updating (if there are other instances of the same version of SQL Server that are below the CU level you’re applying you would see those here)
  2. Click Next
Apply CU Screen 2

Check Files In Use

  1. Let ‘Check Files in Use’ complete
  2. Click Next
Apply CU Screen 3

Ready to Update

  1. Verify configuration
  2. Click Update
Apply CU Screen 4

Computer Restart Required

  1. If you get this box, click OK and reboot after you’re done
Apply CU Screen 5

Complete

  1. Click link to open setup log file and review for any issues
  2. Close
Apply CU Screen 6

Post-Installation Tasks

  • Apply Updates: Install the latest updates and patches to ensure optimal performance and security.
  • Configure Security: Set up user accounts, permissions, and security policies.
  • Backup and Restore: Implement a regular backup and restore strategy to protect your data.
  • Monitoring and Maintenance: Monitor server performance and perform regular maintenance tasks.

Conclusion

By following this step-by-step guide, you can successfully install SQL Server 2019 on your Windows system and unlock its powerful capabilities. With its enhanced performance, intelligent features, and robust security, SQL Server 2019 is a valuable asset for any organization looking to manage and analyze data effectively.

How useful was this guide?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments