SQL Server Installation & Configuration
Installation Overview
This guide provides step‑by‑step instructions for installing Microsoft SQL Server on Windows and Linux platforms, configuring essential services, and validating the deployment.
System Requirements
Component | Minimum | Recommended |
---|---|---|
Operating System | Windows Server 2019 / RHEL 8 | Windows Server 2022 / RHEL 9 |
CPU | 2 cores | 4+ cores |
Memory | 4 GB | 16 GB+ |
Disk Space | 6 GB | 20 GB+ |
Prerequisites
- Ensure the latest cumulative update for the OS is installed.
- Verify that the
NET Framework 4.8
(Windows) ordotnet-runtime-6.0
(Linux) is present. - Disable any conflicting services (e.g., older SQL Server instances) before proceeding.
Installation Steps
Windows
- Download the SQL Server installer.
- Run
setup.exe
with administrator privileges. - Select Installation → New SQL Server stand‑alone installation.
- Follow the wizard: accept license terms, choose Feature Selection (Database Engine Services, Full‑Text, etc.), configure instance name, and set authentication mode.
- On the Server Configuration page, set service accounts and start mode (Automatic).
- Complete the installation and launch SQL Server Management Studio (SSMS) to verify connectivity.
Linux (RHEL/CentOS)
# Add the Microsoft repository
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/9.0/mssql-server-2022.repo
# Install the engine
sudo dnf install -y mssql-server
# Run the setup script
sudo /opt/mssql/bin/mssql-conf setup
# Enable and start the service
sudo systemctl enable mssql-server
sudo systemctl start mssql-server
# Verify the service
systemctl status mssql-server
Post‑Installation Configuration
- Configure firewall rules:
port 1433
inbound TCP. - Enable Transparent Data Encryption (TDE) for sensitive databases.
- Set up regular backups using
sqlbackup
or OS‑level scripts. - Apply the latest cumulative updates:
sqlcmd -S localhost -Q "EXEC sp_updatestats"
.
Troubleshooting
Common issues and resolutions:
Issue | Symptom | Resolution |
---|---|---|
Service fails to start | System logs show error 0x80190110 | Check for missing .NET runtime and install the required version. |
Unable to connect remotely | Connection timeout from client | Open TCP 1433 in firewall and enable SQL Server Browser service. |
Insufficient disk space | Installation aborts with error 10120 | Free up disk space or specify a different data directory during setup. |