版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、<p> 附錄B 外文資料與中文譯文</p><p><b> B1 外文資料</b></p><p> How to troubleshoot connectivity issues in SQL Server 2000</p><p> Chris Tull, Microsoft Help and Support<
2、;/p><p> This article can help you to resolve connectivity problems with Microsoft SQL Server 2000. This article contains descriptions of common connectivity problems and the steps that you can take to help re
3、solve your connectivity problems. </p><p> SQL Server 2000 supports several methods of communication between the instance of SQL Server and the client applications. If your client application and the instan
4、ce of SQL Server reside on the same computer, Microsoft Windows interprocess communication (IPC) components, such as local named pipes or the Shared Memory protocol, are used to communicate. However, when the client appl
5、ication and the instance of SQL Server reside on different computers, a network IPC, such as TCP/IP or named pipes, i</p><p> ?Communication Components</p><p> ?Client and Server Net-Librari
6、es</p><p> ?Managing Clients</p><p> Troubleshoot connectivity issues</p><p> Most of the connectivity issues that you may notice in SQL Server 2000 occur because of problems wi
7、th TCP/IP, Windows authentication, or a combination of TCP/IP and Windows authentication. Important Before you start to troubleshoot connectivity issues in SQL Server 2000, make sure that the MSSQLServer service is sta
8、rted on the computer that is running SQL Server.</p><p> Verify your DNS settings</p><p> The name resolution process in Domain Name System (DNS) is used to resolve the IP address to the name
9、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: </p><p>
10、SQL Server does not exist or access denied</p><p> General Network Error</p><p> Cannot Generate SSPI Context</p><p> To verify that the name resolution process is resolving the
11、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: </p><p> 1.Click Start, and then click Run.</p><p> 2.In the
12、Run dialog box, type cmd in the Open box, and then click OK.</p><p> 3.At the command prompt, run the following command:</p><p> ping <Server Name></p><p> Note the IP add
13、ress that is returned.</p><p> 4.At the command prompt, run the following command (where IP address is the IP address that you noted in step 3):</p><p> ping –a <IP address></p>
14、<p> Verify that the command resolves to the correct server name. If either of the specified commands are not successful, time out, or do not return the correct values, the DNS lookup is not working correctly or th
15、e problem occurs because of other networking or routing issues. To see your current DNS settings, run the following command at a command prompt:</p><p> ipconfig /allTo work around this problem, add an ent
16、ry for the server to the %systemroot%\system32\drivers\etc\hosts file on the client computer. You can also work around the problem by connecting to the server by using the Named Pipes Net-library.</p><p> V
17、erify the enabled protocols and aliases</p><p> Connectivity problems may occur if the alias on the client computer is set incorrectly. You can view the aliases by using Client Network Utility. To do so, fo
18、llow these steps: </p><p> 1.Start Client Network Utility. If the SQL Server client tools are installed on the computer that is running the client application, follow these steps to start Client Network Ut
19、ility: </p><p> a. Click Start, and then point to Programs.</p><p> b. Point to Microsoft SQL Server, and then click Client Network Utility.</p><p> If the SQL Server client to
20、ols are not installed on the client computer, follow these steps to start Client Network Utility: </p><p> a. Click Start, and then click Run.</p><p> b. In the Run dialog box, type cliconfg
21、 in the Open box, and then click OK.</p><p> 2.In the SQL Server Client Network Utility window, click the General tab, and then enable all the protocols that you want to use.</p><p> Note You
22、 must at least enable the TCP/IP protocol and the named pipes protocol.</p><p> 3.Click the Alias tab, and then verify the aliases that are configured for the instance of SQL Server. </p><p>
23、 4.Verify the properties of the aliases to make sure that the server name or IP address and the protocol are configured correctly.</p><p> You can create a new alias to test the connectivity by using the s
24、erver name, the IP address, or even by using a different protocol.Note Earlier versions of Microsoft Data Access Components (MDAC) have a different user interface for Client Network Utility. Therefore, if you do not see
25、 the options that are listed in this article, install a later version of MDAC on the computer that is running the client application.</p><p> Verify that the instance of SQL Server is listening correctly<
26、;/p><p> To verify that the instance of SQL Server is listening on named pipes, TCP/IP, or another protocol that you are using at the client application, open the current SQL Server error log file. The SQL Ser
27、ver error log file may contain entries that are similar to the following:</p><p> 2003-11-06 09:49:36.17 server SQL server listening on TCP, Shared Memory, Named Pipes. 2003-11-06 09:49:36.17 server SQL ser
28、ver listening on 192.168.1.5:1433, 127.0.0.1:1433.If you analyze the entries in the SQL Server error log file, you can verify that the instance of SQL Server is listening on the correct IP address and on the correct por
29、t. By default, a default instance of SQL Server listens on the port 1433. You can also use Server Network Utility to verify the protocol settings for SQL Se</p><p> 2001-11-14 15:49:14.12 server SuperSocket
30、 Info: Bind failed on TCP port 1433.If you cannot connect to the instance of SQL Server by using a TCP/IP connection, try to use the named pipes protocol or the Shared Memory protocol. Run the following command at a com
31、mand prompt to obtain information about the ports that are in use:</p><p> NETSTAT –an</p><p> You can also use the Portqry command-line utility to obtain more information about the ports that
32、 are in use.Note For named instances of SQL Server, SQL Server dynamically determines the port and listens on the determined port. Therefore, when you start the named instance of SQL Server, SQL Server tries to listen o
33、n the port that was previously being used. If SQL Server cannot bind to that port, the named instance may dynamically bind to a different port. In that situation, make sure that the c</p><p> Troubleshoot M
34、DAC Issues</p><p> Connectivity problems may also occur because of problems with MDAC. For example, a software installation may overwrite some of the MDAC files or change the permissions that you must have
35、to access the MDAC files. You can run the MDAC Component Checker to verify the MDAC installation on your computer.Note If you are connecting to a named instance of SQL Server, make sure that you are running MDAC 2.6 or
36、later on your computer. Earlier versions of MDAC do not recognize named instances of SQL Serv</p><p> Troubleshoot firewall issues</p><p> If firewall exists between the client computer and th
37、e computer that is running SQL Server, make sure that the ports that are required to communicate through the firewall are open.If you use the TCP/IP protocol to connect to the instance of SQL Server, make sure that you
38、can use the Telnet program to connect to the port where SQL Server is listening. To use the Telnet program, run the following command at a command prompt: </p><p> Telnet <IP Address> <Port Number&
39、gt;</p><p> If the Telnet program is not successful and you receive an error message, resolve the error and then try to connect again.Note Because of issues that were caused by the Slammer virus, the User
40、Datagram Protocol (UDP) port 1434 may be blocked on your firewall.</p><p> Troubleshoot authentication and security issues</p><p> Connections to SQL Server may not be successful because of au
41、thentication failures. If the authentication fails, you may receive one of the following error messages:</p><p> Login failed for user '<username>'</p><p> Login failed for user
42、'NTAUTHORITY\ANONYMOUS LOGON'</p><p> Login failed for user 'null'</p><p> If you receive an error message because of an authentication failure and the error message does not m
43、ention a specific SQL Server login name, troubleshoot the problem with Windows authentication. You may receive the following error message because of problems with Windows authentication: </p><p> Cannot ge
44、nerate SSPI Context</p><p> The following problems may cause authentication and security issues: </p><p> ?Problems occur with NTLM authentication or with Kerberos authentication.</p>
45、<p> ?The domain controller cannot be contacted because of connectivity issues.</p><p> ?Problems occur with trust relationships across domains.</p><p> For more information about poss
46、ible causes, see the event logs on the computer. To work around connectivity problems with Windows authentication, you can use SQL Server Authentication to connect to the instance of SQL Server. </p><p> If
47、 the connection is not successful when you use SQL Server Authentication, you receive the following error message: </p><p> Login failed for user '<username>' . Not associated with a trusted c
48、onnectionTo troubleshoot this problem, follow these steps. Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guaran
49、tee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. </p><p> 1.Make sure that the instance of SQL Server is configured to use Windows a
50、uthentication and SQL Server Authentication. To do so, make sure that the following registry keys are on the computer that is running SQL Server. For the default instance of SQL Server: </p><p> HKEY_LOCAL_
51、MACHINE\Software\Microsoft\MSSQLServer\MSSQLServer\LoginMode</p><p> For the named instance of SQL Server: </p><p> HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\<Instance Name
52、>\MSSQLServer\LoginMode</p><p> Make sure that the following registry key values are set:</p><p> Authentication typeValue</p><p> Windows authentication only1</p>&l
53、t;p> Mixed mode (SQL Server Authentication and Windows authentication)2</p><p> Note If you make any changes to the registry, you must stop and then restart the instance of SQL Server for the changes t
54、o take effect.</p><p> 2.Try to connect to the instance of SQL Server by using different Windows accounts or SQL Server login accounts. This can help determine if the connection is not successful because o
55、f problems with a particular login account. For example, the password of the login account may have been changed.</p><p> 3.Try to connect to the instance of SQL Server by using different protocols. For ex
56、ample, the connections that use the TCP/IP protocol with Windows authentication may not be successful, but connections that use the named pipes protocol with Windows authentication may be successful.</p><p>
57、 If you are using certificates, you may receive a Secure Sockets Layer (SSL) security error message when you try to connect to the instance of SQL Server. Troubleshoot stress on TCP/IP sockets</p><p> Whe
58、n you use the SQL Server ODBC driver, the Microsoft OLE DB Provider for SQL Server, or the System.Data.SqlClient managed provider, you can disable connection pooling by using the appropriate application programming inter
59、faces (APIs). When you disable connection pooling and your application frequently opens and closes connections, the stress on the underlying SQL Server network library may increase. Sometimes, the Web servers and the JDB
60、C drivers may also try to connect to the instance of SQL </p><p> 2003-08-07 20:46:21.11 server Error: 17832, Severity: 20, State: 6 2003-08-07 20:46:21.11 server Connection opened but invalid login packet
61、(s) sent. Connection closed.For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base: </p><p> 154628 (http://support.microsoft.com/kb/154628/) I
62、NF: SQL logs 17832 with multiple TCP\IP connection requests </p><p> 328476 (http://support.microsoft.com/kb/328476/) TCP/IP settings for SQL Server drivers when pooling is disabled Note You may not notice
63、 the stress on TCP/IP sockets if you are running SQL Server 2000 SP3 or SQL Server 2000 SP3a because a limit on the number of login packets was added. The 17832 error occurs when you use third-party drivers to connect to
64、 the instance of SQL Server. To resolve this problem, contact the third-party vendor and obtain drivers that have been tested to work with SQL </p><p> See if the instance of SQL Server is started in single
65、-user mode</p><p> If the instance of SQL Server that you are trying to connect to is started in single-user mode, only one connection can be established with SQL Server. If you have software running on you
66、r computer that automatically connects to SQL Server, the software can easily use the only connection. For example, the following software can automatically connect to the instance of SQL Server: </p><p> ?
67、SQL Server Agent</p><p> ?Third-party backup software</p><p> ?Third-party monitoring software</p><p> ?Third-party virus software</p><p> ?Microsoft Internet
68、Information Services (IIS)</p><p> ?SQL Server Enterprise Manager </p><p> The client application that is trying to connect to the instance of SQL Server receives the following error message:
69、 </p><p> SQL Server does not exist or Access Denied</p><p> This error generally occurs during SQL Cluster Setup and service pack setup when the setup process starts the instance of SQL Serve
70、r in single-user mode. The specified applications may automatically connect to the instance of SQL Server using the only available connection, and setup is not successful.To determine if the instance of SQL Server has b
71、een started in single-user mode, check to see if the SQL Server error log file has an entry that is similar to following: </p><p> 2003-07-31 11:26:43.79 spid3 Warning ****************** 2003-07-31 11:26:4
72、3.80 spid3 SQL Server started in single user mode. Updates allowed to system catalogs.</p><p> Verify named pipes connectivity to SQL Server</p><p> If you cannot connect to the instance of SQ
73、L Server by using named pipes, make sure that the instance of SQL Server is configured to accept named pipes connections. </p><p> Troubleshoot connections that time out during the recovery process</p>
74、;<p> Every time that you start an instance of SQL Server, SQL Server recovers each database. During this recovery process, SQL Server rolls back the transactions that are not committed. SQL Server also rolls for
75、ward the transactions that are committed and the changes that were not written to the hard disk when the instance of SQL Server was stopped. When the recovery process is complete, SQL Server logs the following message in
76、 the SQL Server error log file: </p><p> Recovery Complete</p><p> During the recovery process, SQL Server may not accept connections. Clients that try to connect to the instance of SQL Server
77、 during that time may receive an error message that is similar to the following: </p><p> Timeout Expired</p><p> The SQL Server Agent service may not start because it waits for SQL Server to
78、recover the databases. Therefore, when you receive the following message in the SQL Server error log file, the connections will no longer fail with a timeout error: </p><p> Recovery Complete</p><
79、;p> If the recovery process takes a long time, you may have to additionally troubleshoot the recovery process.</p><p> Test different ways to connect to the instance of SQL Server</p><p>
80、If you experience connectivity problems when you connect to the instance of SQL Server, you can use one or more of the following methods to work around the connectivity problem. </p><p> ?Test the connecti
81、vity to the instance of SQL Server by using both SQL Server Authentication and Windows authentication.</p><p> ?Test the connectivity to the instance of SQL Server from other data sources, such as an ODBC
82、DSN, a .udl file, SQL Query Analyzer, SQL Server Enterprise Manager, the isql utility, or the osql utility.</p><p> ?Test the connectivity to the instance of SQL Server by using different protocols. You ca
83、n specify different protocols by creating a new alias for the instance of SQL Server using that protocol. You can also specify the protocol in your connection string by adding tcp:, np:, lpc:, or rpc: to the beginning of
84、 the name of the instance of SQL Server. For example, if TCP/IP connections are not successful, named pipes connections succeed.</p><p> ?Test the connectivity by using a different login account to help yo
85、u determine if the problem is associated with a particular login account.</p><p> ?Try to add an entry that corresponds to the IP address of the computer that is running the instance of SQL Server to the %
86、systemroot%\system32\drivers\etc\hosts file.</p><p> ?Try to connect to the instance of SQL Server from the computer that is running SQL Server and from the client.</p><p> ?If you are conne
87、cting from the computer that is running SQL Server, you can specify "." or "(local)" (without the quotation marks) instead of the server name and then connect.</p><p> ?Try to connect t
88、o the instance of SQL Server by using the IP address instead of the server name.</p><p> ?Try to specify the specific port that the instance of SQL Server is listening on, either by creating an alias or by
89、 adding a port number to the connection string (MyServer\MyInstance, 1433, for example).</p><p> Capture network monitor traces</p><p> If the connectivity problem is not resolved by the steps
90、 that are mentioned in "Test different ways to connect to the instance of SQL Server 2000" section, use the Network Monitor utility to capture network traces. To obtain more detailed information, you may have
91、to use SQL Profiler traces. You can also use the Network Diagnostics Tool for non-clustered computers that are running SQL Server for network tracing. </p><p><b> B2 中文譯文</b></p><p&g
92、t; 如何解決 SQL Server 2000 中的連接問題</p><p> Chris Tull, Microsoft Help and Support</p><p> 這一篇文章能幫助你解決微軟 SQL 伺候器 2000 的連接性問題。這一篇文章包含你能拿幫助解決你的連接性問題的通常連接性問題和步驟的描述。</p><p> SQL Server的例
93、證和客戶端申請之間的溝通的 SQL Server 2000 支持一些方法。如果你的客戶申請和SQL Server的例證在相同的計算機上住, Microsoft Windows 處理之間的溝通 (IPC) 成份(像是當(dāng)?shù)氐拿芑蛘弑环窒淼挠洃浻涗洠┯脕頊贤ā?然而, 當(dāng)客戶端申請和SQL Server的例證在不同的計算機,網(wǎng)絡(luò)IPC(像是TCP/IP上住的時候或者命名管道)用來溝通。</p><p> SQL
94、Sever 2000 使用網(wǎng)絡(luò)控件庫(一個DLL)與一個特別的網(wǎng)絡(luò)記錄溝通。 一雙相配網(wǎng)絡(luò)控件庫一定在客戶計算機和服務(wù)器計算機上是活躍的支援你想要使用的網(wǎng)絡(luò)記錄。 舉例來說,如果你想要使一個客戶申請能夠與通過TCP/IP的一個 SQL Server的特定例證溝通, 客戶TCP/IP套接字網(wǎng)絡(luò)控件庫 (Dbnetlib.dll) 一定配置成在客戶計算機上對伺候器連接。 同樣地, 服務(wù)器TCP/IP套接字網(wǎng)絡(luò)控件庫 (Ssnetlib.dl
95、l) 一定在伺候器計算機上聽。 在這一個情節(jié)中, TCP/IP協(xié)議堆棧一定是裝置在客戶計算機和服務(wù)器計算機。</p><p> 在你安裝SQL Server 2000 之后,你能配置客戶端網(wǎng)絡(luò)的特性使用客戶端網(wǎng)絡(luò)公用程序的網(wǎng)絡(luò)庫屬性。你能配置服務(wù)器網(wǎng)絡(luò)的特性使用服務(wù)器網(wǎng)絡(luò)公用程序(Svrnetcn.exe)的網(wǎng)絡(luò)控件庫屬性。在安裝 SQL Server 安裝程序中的服務(wù)器工具期間,服務(wù)器的網(wǎng)絡(luò)庫也被同時安裝了。
96、然而,一些服務(wù)器的網(wǎng)絡(luò)庫可能不是激活的。如此,SQL Server 2000 啟用并偵聽 TCP/IP、命名管道和共享內(nèi)存。因此,讓一個客戶端對一部服務(wù)器計算機連接,客戶端一定使用一個客戶端網(wǎng)絡(luò)庫,該網(wǎng)絡(luò)庫匹配與SQL Server實例正在使用的服務(wù)器網(wǎng)絡(luò)庫之一。</p><p> 對于關(guān)于SQL Server通訊部件和網(wǎng)絡(luò)庫的其它信息,請參見“SQL Server 在線參考書”中的下列主題: </p&g
97、t;<p><b> ?通信部件</b></p><p> ?客戶端和服務(wù)器網(wǎng)絡(luò)庫</p><p><b> ?管理客戶端</b></p><p><b> 解決連接問題</b></p><p> 在 SQL Server 2000 中大多數(shù)連接問
98、題你可能會注意到的都是由 TCP/IP 的問題或 Windows 身份認證的問題引起,或者兩者共同組合引起。</p><p> 重要說明:你開始解決 SQL Server 2000 的連接問題之前,確定MSSQLServer 服務(wù)已在運行 SQL Server 的計算機上啟動。</p><p><b> 驗證 DNS 設(shè)置</b></p><p
99、> 域名系統(tǒng) (DNS)的名稱解析過程被用于解決IP對SQL Server實例名稱。如果名稱解析程序不正確地工作,SQL服務(wù)器的實例不是可到達的,你可能接受到一條或多條下列錯誤信息:</p><p> SQL Server does not exist or access denied</p><p> General Network Error</p><
100、p> Cannot Generate SSPI Context</p><p> 為了要確認名稱解析程序是解析正確的服務(wù)器,你能使用服務(wù)器的服務(wù)器名字和IP地址ping服務(wù)器。為此,請遵從如下步驟操作:</p><p> 1.單擊“開始”,然后單擊“運行”。</p><p> 2.在“運行”對話框中,在“打開”框中鍵入 cmd,然后單擊“確定”。&
101、lt;/p><p> 3.在命令提示符下,運行下列命令:</p><p> ping <Server Name></p><p> 記錄返回的 IP 地址。</p><p> 4.在命令提示符下,運行下列命令(此處的 IP address 就是你在步驟 3 中記錄的 IP 地址):</p><p>
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 計算機專業(yè)畢業(yè)外文翻譯--如何解決 sql server 2000 中的連接問題
- 計算機專業(yè)外文翻譯--如何解決 sql server 2000 中的連接問題
- 計算機專業(yè)外文翻譯--- 如何解決sql server 2000中的連接問題
- 計算機外文資料翻譯--如何解決 sql server 2000 中的連接問題
- 外文翻譯--如何解決 SQL Server 2000 中的連接問題.doc
- 外文翻譯--如何解決 SQL Server 2000 中的連接問題.doc
- 如何解決 SQL Server 2000 中的連接問題.doc
- 計算機專業(yè)外文翻譯---sql server的發(fā)展歷程
- 計算機專業(yè)外文翻譯---sql server 2008商業(yè)智能
- 計算機畢業(yè)設(shè)計外文翻譯---sql server的簡介
- 計算機專業(yè)外文翻譯---icrosoft sql server的spss分析服務(wù)
- 計算機專業(yè)畢業(yè)論文外文翻譯15
- 計算機專業(yè)畢業(yè)論文外文翻譯7
- 計算機專業(yè)畢業(yè)論文外文翻譯資料--visual studio .net如何為并發(fā)控制生成sql語句
- 計算機專業(yè)畢業(yè)論文外文翻譯--計算機病毒介紹
- 計算機專業(yè)畢業(yè)論文外文翻譯2篇
- 計算機畢業(yè)論文外文翻譯
- 計算機專業(yè)畢業(yè)論文翻譯
- 計算機英語畢業(yè)論文外文翻譯
- 計算機畢業(yè)論文外文翻譯10
評論
0/150
提交評論