Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we access Microsoft SQL Server database on WAN? [closed]

Tags:

sql-server

I just want to ask that can we access Microsoft SQL Server database on WAN like My SQL Database? If so, then kindly guide me how?

Thanks in Advance.

like image 977
Ali Hasan Avatar asked Jan 01 '16 03:01

Ali Hasan


People also ask

Can I use SQL Server without Internet?

Microsoft SQL Server can run on a network, or it can function without a network.

How do I make my SQL Server database accessible remotely?

Using SQL Server Management StudioIn Object Explorer, right-click a server and select Properties. Select the Connections node. Under Remote server connections, select or clear the Allow remote connections to this server check box.

What ports need to be open for SQL Server?

By default, the typical ports used by SQL Server and associated database engine services are: TCP 1433, 4022, 135, 1434, UDP 1434.

How do I access Microsoft SQL database?

Connect to a SQL Server instance Start SQL Server Management Studio. The first time you run SSMS, the Connect to Server window opens. If it doesn't open, you can open it manually by selecting Object Explorer > Connect > Database Engine. For Server type, select Database Engine (usually the default option).


1 Answers

Q: Can you access MSSQL across a WAN?

A: Short answer: Yes.

In theory, you can access MSSQL anywhere across the network, including across a WAN network.

All you need are:

  1. a route between your client and the MSSQL server, and

  2. the MSSQL port (typically TCP port 1433) to be open.

If you can "ping" from your client to the remote host, you've got 1) covered.

In order to "open the port", however, you must:

a. Configure the MSSQL Server to use TCP/IP (this is not necessarily enabled by default)

b. Open port 1433 on the MSSQL Server's host

c. Configure the router(s) between your client and the host to open port 1433, and route requests on that port to your MSSQL Server's host

d. Configure any firewalls (including your client PC) to allow port 1433

Here is a link for opening your Windows firewall:

  • https://msdn.microsoft.com/en-us/library/cc646023.aspx

Here is a link for configuring your router(s):

  • https://technet.microsoft.com/en-us/library/ms175483%28v=sql.105%29.aspx
like image 155
paulsm4 Avatar answered Nov 15 '22 06:11

paulsm4