【正文】
大連交通大學(xué) 2020屆本科生畢業(yè)設(shè)計(jì)(論文)外文翻譯 1 How to troubleshoot connectivity issues in SQL Server 2020 Author: Chris Tull, Source : Microsoft Help and Support This article can help you to resolve connectivity problems with Microsoft SQL Server 2020. This article contains descriptions of mon connectivity problems and the steps that you can take to help resolve your connectivity problems. SQL Server 2020 supports several methods of munication between the instance of SQL Server and the client applications. If your client application and the instance of SQL Server reside on the same puter, Microsoft Windows interprocess munication (IPC) ponents, such as local named pipes or the Shared Memory protocol, are used to municate. However, when the client application and the instance of SQL Server reside on different puters, a work IPC, such as TCP/IP or named pipes, is used to municate. SQL Server 2020 uses NetLibrary, a DLL, to municate with a particular work protocol. A matching pair of NetLibraries must be active on the client puter and the server puter to support the work protocol that you want to use. For example, if you want to enable a client application to municate with a specific instance of SQL Server across TCP/IP, the client TCP/IP Sockets NetLibrary () must be configured to connect to the server on the client puter. Likewise, the server TCP/IP Sockets NetLibrary () must listen on the server puter. In this scenario, the TCP/IP protocol stack must be installed on both the client puter and the server puter. After you install SQL Server 2020, you can configure the properties of the client NetLibraries by using Client Network Utility. You can configure the properties of the server NetLibraries by using Server Network Utility (). The server NetLibraries are installed during the installation of the server tools in SQL Server Setup. However, some of the server NetLibraries may not be active. By default, SQL Server 2020 enables and listens on TCP/IP, named pipes, and Shared Memory. Therefore, for a client to connect to a server puter, the client must connect by using a client NetLibrary that matches one of the server NetLibraries that is currently being used by the instance of SQL Server. 大連交通大學(xué) 2020屆本科生畢業(yè)設(shè)計(jì)(論文)外文翻譯 2 For additional information about SQL Server munication ponents and NetLibraries, see the following topics in SQL Server Books Online: ? Communication Components ? Client and Server NetLibraries ? Managing Clients Troubleshoot connectivity issues Most of the connectivity issues that you may notice in SQL Server 2020 occur because of problems with TCP/IP, Windows authentication, or a bination of TCP/IP and Windows authentication. Important Before you start to troubleshoot connectivity issues in SQL Server 2020, make sure that the MSSQLServer service is started on the puter that is running SQL Server. Verify your DNS settings The name resolution process in Domain Name System (DNS) is used to resolve the IP address to the name of the instance of SQL Server. If the name resolution process does not work correctly, the instance of SQL Server is not reachable, and you may receive one or more of the following error messages: SQL Server does not exist or access denied General Network Error Cannot Generate SSPI Context To verify that the name resolution process is resolving the correct server, you can ping the server by using the server name and the IP address of the server. To do so, follow these steps: 1. Click Start, and then click Run. 2. In the Run dialog box, type cmd in the Open box, and then click OK. 3. At the mand prompt, run the following mand: ping Server Name Note the IP address that is returned. 4. At the mand prompt, run the following mand (where IP address is the IP address that you noted in step 3): ping –a IP address 大連交通大學(xué) 2020屆本科生畢業(yè)設(shè)計(jì)(論文)外文翻譯 3 Verify that the mand resolves to the correct server name. If either of the specified mands are not successful, time out, or do not return the correct values, the DNS lookup is not working correctly or the problem occurs because of other working or routing issues. To see your current DNS settings, run the following mand at a mand prompt: ipconfig /all To work around this problem, add an entry for the server to the %systemroot%\system32\drivers\etc\hosts file on the client puter. You can also work around the problem by connecting to the server by using the Named Pipes Netlibrary. Verify the enabled protocols and aliases Connectivity problems may occur if the alias on the client puter is set incorrectly. You can view the aliases by using Client Network Utility. To do so, follow these steps: 1. Start Client Network Utility. If the SQL Server client tools are installed on the puter that is running the client application, follow these steps to start Client Network Utility: a. Click Start, and then point to Programs. b. Point to Microsoft SQL Server, and then click Client Network Utility. If the SQL Server client tools are not installed on the client puter, follow these steps to start Client Network Utility: a. Click Start, and then click Run. b. In the Run dialog box, type cliconfg in the Open box, and then click OK. 2. In the SQL Server Client Network Utility window, click the General tab, and then enable all the protocols that you want to use. Note You must at least enable the TCP/IP protocol and the named pipes protocol. 3. Click the Alias tab, and then verify the aliases that are configured for the instance of SQL Server. 4. Verify the properties of the aliases to make sure that the server name or IP address and the protocol are configured correctly. You can create a new alias to test the connectivity by using the server name, the IP address, or even by using a different protocol. Note Earlier versions of Micro