003. Installation
This guide provides step-by-step instructions for installing Microsoft SQL Server and SQL Server Management Studio (SSMS) on a Windows machine.
Prerequisites
- Windows 10/11 or Windows Server 2016/2019/2022
- Administrator privileges
- Minimum 6GB of available disk space
- 4GB RAM (8GB recommended)
Part 1: Installing Microsoft SQL Server
- Navigate to the Microsoft SQL Server download page
- Select the edition you want to install (Express is free for development)
- Click “Download now”
- Save the installation file to your computer
[SCREENSHOT PLACEHOLDER: SQL Server download page with download button highlighted]
Step 2: Launch the Installation Wizard
- Locate the downloaded file (typically SQLServerSetup.exe)
- Right-click the file and select “Run as administrator”
- If prompted by User Account Control, click “Yes”
[SCREENSHOT PLACEHOLDER: UAC prompt with Yes button highlighted]
Step 3: Choose Installation Type
- In the SQL Server Installation Center, select “Installation” from the left menu
- Click “New SQL Server stand-alone installation”
[SCREENSHOT PLACEHOLDER: Installation Center with New stand-alone installation option highlighted]
Step 4: Enter Product Key
- If using a licensed version, enter your product key
- For Express edition, select “Specify a free edition” and choose “Express”
- Click “Next”
[SCREENSHOT PLACEHOLDER: Product Key page with Express edition selected]
Step 5: Accept License Terms
- Read the license terms
- Check “I accept the license terms”
- Click “Next”
[SCREENSHOT PLACEHOLDER: License terms page with checkbox selected]
Step 6: Feature Selection
- Select “SQL Server Feature Installation”
- Click “Next”
- On the Features page, select:
- Database Engine Services (required)
- SQL Server Replication (optional)
- Machine Learning Services (optional)
- Any other features you need
- Click “Next”
[SCREENSHOT PLACEHOLDER: Feature selection page with Database Engine Services selected]
Step 7: Instance Configuration
- Choose “Default instance” for most installations
- Or specify a named instance if needed
- Review the instance ID and root directory
- Click “Next”
[SCREENSHOT PLACEHOLDER: Instance configuration page with Default instance selected]
Step 8: Server Configuration
- On the Server Configuration page:
- Set “SQL Server Database Engine” to start automatically
- Configure service accounts as needed (NT AUTHORITY\SYSTEM is fine for development)
- Click “Next”
[SCREENSHOT PLACEHOLDER: Server Configuration page with automatic startup selected]
Step 9: Database Engine Configuration
- On the “Database Engine Configuration” page:
- Select “Mixed Mode” authentication
- Enter and confirm a strong password for the SA account
- Click “Add Current User” to add your Windows account as an admin
- Click “Next”
[SCREENSHOT PLACEHOLDER: Database Engine Configuration page with Mixed Mode selected and SA password set]
Step 10: Installation Progress
- Review the installation summary
- Click “Install” to begin the installation
- Wait for the installation to complete (this may take 10-30 minutes)
[SCREENSHOT PLACEHOLDER: Installation progress screen showing completion status]
Step 11: Complete Installation
- Once installation is complete, click “Close”
- Restart your computer if prompted
[SCREENSHOT PLACEHOLDER: Installation complete screen with Close button]
Part 2: Installing SQL Server Management Studio (SSMS)
Step 1: Download SSMS
- Navigate to the SSMS download page
- Click “Download SQL Server Management Studio”
- Save the installation file to your computer
[SCREENSHOT PLACEHOLDER: SSMS download page with download button]
Step 2: Launch SSMS Installer
- Locate the downloaded file (SSMS-Setup-ENU.exe)
- Right-click and select “Run as administrator”
- If prompted by UAC, click “Yes”
[SCREENSHOT PLACEHOLDER: UAC prompt for SSMS installer]
Step 3: Installation Location
- The installer will extract files to a temporary location
- Wait for the extraction to complete
[SCREENSHOT PLACEHOLDER: SSMS extraction progress screen]
Step 4: SSMS Installation Wizard
- Click “Install” to begin the installation
- Wait for the installation to complete (typically 5-15 minutes)
[SCREENSHOT PLACEHOLDER: SSMS installation progress screen]
Step 5: Complete SSMS Installation
- Click “Close” when installation is complete
- SSMS will launch automatically (or you can find it in the Start menu)
[SCREENSHOT PLACEHOLDER: SSMS installation complete screen]
Part 3: Connecting to SQL Server with SSMS
Step 1: Launch SSMS
- Open SSMS from the Start menu
- Wait for the application to initialize
[SCREENSHOT PLACEHOLDER: SSMS splash screen]
Step 2: Connect to Server
- In the “Connect to Server” dialog:
- Server type: Database Engine
- Server name: (local) or .\SQLEXPRESS (for Express edition)
- Authentication: SQL Server Authentication
- Login: sa
- Password: [the password you set during SQL Server installation]
- Click “Connect”
[SCREENSHOT PLACEHOLDER: Connect to Server dialog with credentials entered]
Step 3: Verify Connection
- Once connected, you should see the Object Explorer with your server listed
- You can now create databases, run queries, and manage your SQL Server instance
[SCREENSHOT PLACEHOLDER: SSMS main window with Object Explorer visible]
Troubleshooting Tips
-
If you can’t connect:
- Verify SQL Server service is running (services.msc)
- Check firewall settings to ensure port 1433 is open
- Confirm you’re using the correct authentication mode
-
For installation errors:
- Check the SQL Server setup logs (typically in Program Files\Microsoft SQL Server\NNN\Setup Bootstrap\Log)
- Ensure your system meets all requirements
-
If SSMS fails to install:
- Install the latest Windows updates
- Ensure you have .NET Framework 4.8 or later installed