How To Enable Remote Connections To SQL Server
How To Enable Remote Connections To SQL Server
How To Enable Remote Connections To SQL Server
Problem in hand
So you have a VM or a remote server, that you have installed SQL Server, but you also
want to connect to SQL Server using SQL Server Management Studio on your local
system, but gives you this error.
This is because you haven’t configured it to allows inbound connections from firewall or
from SQL Server itself, could be both.
Prerequisites
1. Remote server/VM must have SQL Server Management Studio and SQL Server
Configuration Manager Installed.
2. Remote SQL Server must have a user that have read and write privileges (Here I’m
using sa user)
Connect to the server/VM using Remote Desktop Connection and open up SQL Server
Management Stdio on remote server, then connect to the SQL Server instance.
After that, again right click and select Properties of TCP/IP protocol.
Goto IP Addresses tab and go down until you see IPALL section. Make sure the TCP Port
is set to 1433. If not set it to 1433.
This warning will appear, so we need to restart the server. we can do it by using SQL
Server Configuration manager.
Locate SQL Server under SQL Server Services, right click and select Restart.
Name: SQLTCP1433
Click finish. We need to add another rule for UDP connections as well.
Name: SQLUDP1434
Let’ make SQL Server and SQL Server Browser accessible through firewall.
Name: SQLSERVER
One more rule for the SQL Server Browser.
Rule Type: Program
Name: SQLBROWSER
Click Apply. Now let’s make sure that we keep the service failures to minimum.
3. Click OK.
Find the SQL Server service, right click and select Properties.
On the Recovery tab select Restart the Service for First failure, Second failure,
Subsequent failures.
…and Done!.