Epoch 3 - SQL Server Configuration
Set up SQL Server so the JSP Shop project can connect successfully, using TCP/IP and System Administrator (SA) authentication mode.
Epoch 3 - SQL Server Configuration
1. Open SQL Server Configuration Manager
Press Windows + S and search for:
- “SQL Server Configuration Manager” (Exact name may vary depending on SQL Server version: e.g., SQL Server 2019 Configuration Manager)
Open it — you’ll see multiple configuration options for network protocols.
2. Enable TCP/IP Protocol
- In the left pane, navigate to:
- SQL Server Network Configuration → Protocols for MSSQLSERVER
(If you installed a named instance, it will show as Protocols for
<InstanceName>
)
- SQL Server Network Configuration → Protocols for MSSQLSERVER
- In the right pane, locate TCP/IP → Right-click → Enable.
- Click OK if prompted.
3. Configure TCP/IP Port
- Double-click TCP/IP to open Properties.
- Go to the IP Addresses tab.
- Scroll down to IPAll.
- In the TCP Port box, enter: 1433
(Default port for SQL Server TCP/IP)
- Click OK.
4. Restart SQL Server Service
- In SQL Server Configuration Manager, click SQL Server Services.
- Find your instance name, e.g.:
- SQL Server (MSSQLSERVER) (Default instance)
- Right-click → Restart.
5. Enable Mixed Mode Authentication (SA Account)
- Open SQL Server Management Studio (SSMS).
- Connect to your server instance as Windows Authentication.
- Right-click on the server name in Object Explorer → Properties.
- Go to Security → Select SQL Server and Windows Authentication mode.
- Click OK.
- Restart the SQL Server service again.
6. Enable and Set Password for SA Account
- In SSMS, expand: Security → Logins
- Right-click sa → Properties.
- On General: Set a strong password (e.g., P@ssword123)
- On Status: Ensure Login is set to Enabled.
- Click OK.
7. Test the Connection
- Open SSMS.
- On login screen:
- Server name: localhost,1433
- Authentication: SQL Server Authentication
- Login: sa
- Password: (your password)
- Click Connect — if successful, the configuration is correct.
This post is licensed under CC BY 4.0 by the author.