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

in #sqlserver6 years ago


It is always troublesome to access MS SQL running in windows server from a location 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 to 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.

sk0.png

  1. Open SQL server configuration manager

  2. In the side menu expand "SQL server network configuration"

  3. Double click on the SQL instance name.

  4. Ensure that "Shared memory" an TCP/IP are enabled. If not right click and enable it.

sk1.png

  1. Double click on the TCP/IP. A popup with tow tabs will appear.

  2. Open tab "IP addresses" and scroll down to IPAII section. clear "TCP dynamic ports" section. add port number to "TCP port" section and Apply changes.

sk2.png

  1. Now select Sql server services from side bar. From the services list restart the SQL Server instance to apply changes.

  2. Now open "firewall with advanced security" from control panel.

  3. Select Inbound rules from side panel. and select "New Rule" from right side.

  4. First in Rule Type select "Port"

  5. In protocol and ports select TCP" protocol. And enter your port number below after selecting specific ports

  6. Select all three options (Domain, Private, Public) under Profile

  7. In the "Name" section give a name and description to the rule then finish.

sk4.png

Now everything is set. Close the window server now 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.

sk5.png

now the sql server will connect.

For detailed video please refer the following


▶️ DTube
▶️ IPFS
Sort:  

Congratulations @arunvk! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.034
BTC 63314.98
ETH 3233.91
USDT 1.00
SBD 3.88