Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 0e7e720

Browse files
committed
Improved main connection topic
1 parent ebdf578 commit 0e7e720

1 file changed

Lines changed: 12 additions & 17 deletions

File tree

docs/linux/sql-server-linux-connect-and-query.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,7 @@ ms.assetid:
2929
This topic provides an overview of how to connect and run Transact-SQL (TSQL) queries on SQL Server vNext CTP1 running on Linux. In many ways the connection techniques and T-SQL commands do not differ between platforms. But this topic looks at the requirements and tools for Linux and then provides references to other resources.
3030

3131
## Connection requirements
32-
To connect to SQL Server on Linux, you must use SQL Authentication (username and password). To connect remotely, you must open the port that SQL Server is listening on. The default instance of SQL Server listens on TCP port 1433.
33-
34-
### Connection requirements for Azure virtual machines
35-
If you are running Linux in an Azure virtual machine (VM), you must create a Network Security Group rule that allows traffic to TCP port 1433.
36-
37-
1. In the Azure portal, select your Linux VM, and then select the **Network interfaces** setting.
38-
2. In the next blade, select your network interface to view its properties.
39-
3. In the Network interface blade, click the **Network security group** link to manage the Network Security Group associated with your VM.
40-
4. Create a Network Security Group rule. For step-by-step instructions, use the steps in [Create rules in an existing NSG](https://azure.microsoft.com/documentation/articles/virtual-networks-create-nsg-arm-pportal/#create-rules-in-an-existing-nsg). These provide the steps for creating an NSG rule, but you must customize your rule for incoming TCP traffic on port 1433.
32+
To connect to SQL Server on Linux, you must use SQL Authentication (username and password). To connect remotely, you must ensure that the port SQL Server listens on is open. The default instance of SQL Server listens on TCP port 1433. Depending on your Linux distribution and configuration, you might have to open this port in the firewall.
4133

4234
## Tools
4335
The following table lists several tools that connect to SQL Server and allow you to run queries.
@@ -49,14 +41,17 @@ The following table lists several tools that connect to SQL Server and allow you
4941
| [SQL Server Management Studio (SSMS) for Windows](https://msdn.microsoft.com/library/mt238290.aspx) | **SQL Server Management Studio** is a Windows tool for both querying and managing SQL Server instances. This is best for when you are working with both Windows and Linux machines. You can connect SSMS running on Windows to SQL Server running on Linux. The advantage of SSMS is that it provide a graphical user interface for many server and database management tasks. <br/>[Connect and query SQL Server on Linux (SSMS)](sql-server-linux-connect-and-query-ssms.md) |
5042

5143
## <a id="troubleshoot"></a> Troubleshoot connection failures
52-
53-
The most common reasons for connection failures are mistakes in the server name/IP-address and network connectivity issues.
54-
55-
Also, verify the user name and password do not contain any typos or extra spaces (user names are not case-sensitive, but passwords are).
56-
57-
You can also explicitly set the protocol and port number with the server name like the following: `tcp:servername,1433`
58-
59-
Network connectivity issues can also cause connection errors and timeouts. After verifying your connection information and network connectivity, try the connection again.
44+
If you are having difficulty connecting to your Linux SQL Server instance, there are a few things to check.
45+
46+
- Verify that the server name or IP address is reachable from your client machine.
47+
- Verify that the user name and password do not contain any typos or extra spaces or incorrect casing.
48+
- Try to explicitly set the protocol and port number with the server name like the following: **tcp:servername,1433**.
49+
- Network connectivity issues can also cause connection errors and timeouts. After verifying your connection information and network connectivity, try the connection again.
50+
- If you are running Linux in an Azure virtual machine (VM), you must create a Network Security Group rule for port 1433 to connect to SQL Server remotely.
51+
1. In the Azure portal, select your Linux VM, and then select the **Network interfaces** setting.
52+
2. In the next blade, select your network interface to view its properties.
53+
3. In the Network interface blade, click the **Network security group** link to manage the Network Security Group associated with your VM.
54+
4. Create a Network Security Group rule. For step-by-step instructions, use the steps in [Create rules in an existing NSG](https://azure.microsoft.com/documentation/articles/virtual-networks-create-nsg-arm-pportal/#create-rules-in-an-existing-nsg). These provide the steps for creating an NSG rule, but you must customize your rule for incoming TCP traffic on port 1433.
6055

6156
## Next Steps
6257
For more information on using SQL Server vNext on Linux, see [SQL Server on Linux overview](sql-server-linux-overview.md).

0 commit comments

Comments
 (0)