HOW TO ACCESS MS SQL IN WINDOWS SERVER FROM A REMOTE SQL SERVER MANAGEMENT STUDIO

It is always troublesome to access MS SQL running in windows server from a local system. In this post I am explaining how to do it easily in less time. The main things to be done are: First we need to allow remote access to the sql server we are using.Then set a port to access the sql server through TCP/IP connection. Next step is to create an inbound rule in firewall to accept connection to that port. You can follow the steps given below to do this.

1. Connect with windows server
2. Open sql server management studio. And connect to the sql server instance.
3. Right click on the SQL server instance and select properties.
4. Select "Connections" from side menu. Make sure the "Allow remote connections to this server" Checkbox is selected. then press OK. 

5.  Open "SQL server configuration manager"
6. In the side menu expand "SQL server network configuration"
7. Double click on the SQL instance name.
8. Ensure that "Shared memory" an "TCP/IP" are enabled. If not right click and enable it.

9. Double click on the TCP/IP. A popup with two tabs will appear.
10. Open tab "IP addresses" and scroll down to IPAII section. clear values in "TCP dynamic ports" section. add port number to "TCP port" section and Apply changes.

11. Now select Sql server services from side bar. From the services list restart the SQL Server instance to apply changes.
12. Open "firewall with advanced security" from control panel.
13. Select Inbound rules from side panel. and select "New Rule" from right side.
14. First in Rule Type select "Port"
15. In protocol and ports select TCP" protocol. And enter your port number below after selecting "specific ports"
16. Select all three options (Domain, Private, Public) under "Profile"
17. In the "Name" section give a name and description to the rule then finish.
Now everything is set. Close the window server and in the local system open sql server management studio. In server name enter IP address of windows server and the port number separated by a coma(,) and enter username and password.

 now the sql server will connect.

For detailed video please refer the following




Comments

Popular posts from this blog

FIX: Severity Code Description Project File Line Suppression State Error Web deployment task failed.

FIX Web Deploy from visual studio failed with error ERROR_EXCEEDED_MAX_S...

Add/Remove automatic password expiration of MS SQL user