SQL by default is not configured to allow remote access. There are three easy steps to configure it:
- Enable remote access in the properties
- Enable the protocol
- Restart Services
Detailed steps below:
- Enable remote access in the properties
- Launch SQL Management Studio
- Choose to connect to the Database Engine of the server
- Right-click Server Name and select Properties
- Select a page: Connections
- Check “Allow remote connections to this server”
- Select OK
- Enable the protocol
- Launch SQL Server Configuration Manager
- Select SQL Server Network Configuration
- Select Protocols for MSSQLSERVER
- Enable TCP/IP
- Restart SQL Services
- Run CMD Prompt as an Administrator
- net stop mssqlserver
- net start mssqlserver
- If other services were stopped when you stopped SQL server such as SQL Agent, you need to restart them too:
Ex: net start sqlserveragent