计算机专业外文翻译

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

8HowtotroubleshootconnectivityissuesinSQLServer2000ChrisTull,MicrosoftHelpandSupportThisarticlecanhelpyoutoresolveconnectivityproblemswithMicrosoftSQLServer2000.Thisarticlecontainsdescriptionsofcommonconnectivityproblemsandthestepsthatyoucantaketohelpresolveyourconnectivityproblems.SQLServer2000supportsseveralmethodsofcommunicationbetweentheinstanceofSQLServerandtheclientapplications.IfyourclientapplicationandtheinstanceofSQLServerresideonthesamecomputer,MicrosoftWindowsinterprocesscommunication(IPC)components,suchaslocalnamedpipesortheSharedMemoryprotocol,areusedtocommunicate.However,whentheclientapplicationandtheinstanceofSQLServerresideondifferentcomputers,anetworkIPC,suchasTCP/IPornamedpipes,isusedtocommunicate.SQLServer2000usesNet-Library,aDLL,tocommunicatewithaparticularnetworkprotocol.AmatchingpairofNet-Librariesmustbeactiveontheclientcomputerandtheservercomputertosupportthenetworkprotocolthatyouwanttouse.Forexample,ifyouwanttoenableaclientapplicationtocommunicatewithaspecificinstanceofSQLServeracrossTCP/IP,theclientTCP/IPSocketsNet-Library(Dbnetlib.dll)mustbeconfiguredtoconnecttotheserverontheclientcomputer.Likewise,theserverTCP/IPSocketsNet-Library(Ssnetlib.dll)mustlistenontheservercomputer.Inthisscenario,theTCP/IPprotocolstackmustbeinstalledonboththeclientcomputerandtheservercomputer.AfteryouinstallSQLServer2000,youcanconfigurethepropertiesoftheclientNet-LibrariesbyusingClientNetworkUtility.YoucanconfigurethepropertiesoftheserverNet-LibrariesbyusingServerNetworkUtility(Svrnetcn.exe).TheserverNet-LibrariesareinstalledduringtheinstallationoftheservertoolsinSQLServerSetup.However,someoftheserverNet-Librariesmaynotbeactive.Bydefault,SQLServer2000enablesandlistensonTCP/IP,namedpipes,andSharedMemory.Therefore,foraclienttoconnecttoaservercomputer,theclientmustconnectbyusingaclientNet-LibrarythatmatchesoneoftheserverNet-LibrariesthatiscurrentlybeingusedbytheinstanceofSQLServer.ForadditionalinformationaboutSQLServercommunicationcomponentsandNet-Libraries,seethefollowingtopicsinSQLServerBooksOnline:•CommunicationComponents•ClientandServerNet-Libraries•ManagingClientsTroubleshootconnectivityissuesMostoftheconnectivityissuesthatyoumaynoticeinSQLServer2000occurbecauseofproblemswithTCP/IP,Windowsauthentication,oracombinationofTCP/IPandWindowsauthentication.9ImportantBeforeyoustarttotroubleshootconnectivityissuesinSQLServer2000,makesurethattheMSSQLServerserviceisstartedonthecomputerthatisrunningSQLServer.VerifyyourDNSsettingsThenameresolutionprocessinDomainNameSystem(DNS)isusedtoresolvetheIPaddresstothenameoftheinstanceofSQLServer.Ifthenameresolutionprocessdoesnotworkcorrectly,theinstanceofSQLServerisnotreachable,andyoumayreceiveoneormoreofthefollowingerrormessages:SQLServerdoesnotexistoraccessdeniedGeneralNetworkErrorCannotGenerateSSPIContextToverifythatthenameresolutionprocessisresolvingthecorrectserver,youcanpingtheserverbyusingtheservernameandtheIPaddressoftheserver.Todoso,followthesesteps:1.ClickStart,andthenclickRun.2.IntheRundialogbox,typecmdintheOpenbox,andthenclickOK.3.Atthecommandprompt,runthefollowingcommand:pingServerNameNotetheIPaddressthatisreturned.4.Atthecommandprompt,runthefollowingcommand(whereIPaddressistheIPaddressthatyounotedinstep3):ping–aIPaddressVerifythatthecommandresolvestothecorrectservername.Ifeitherofthespecifiedcommandsarenotsuccessful,timeout,ordonotreturnthecorrectvalues,theDNSlookupisnotworkingcorrectlyortheproblemoccursbecauseofothernetworkingorroutingissues.ToseeyourcurrentDNSsettings,runthefollowingcommandatacommandprompt:ipconfig/allToworkaroundthisproblem,addanentryfortheservertothe%systemroot%\system32\drivers\etc\hostsfileontheclientcomputer.YoucanalsoworkaroundtheproblembyconnectingtotheserverbyusingtheNamedPipesNet-library.VerifytheenabledprotocolsandaliasesConnectivityproblemsmayoccurifthealiasontheclientcomputerissetincorrectly.YoucanviewthealiasesbyusingClientNetworkUtility.Todoso,followthesesteps:1.StartClientNetworkUtility.IftheSQLServerclienttoolsareinstalledonthecomputerthatisrunningtheclientapplication,followthesestepstostartClientNetworkUtility:a.ClickStart,andthenpointtoPrograms.b.PointtoMicrosoftSQLServer,andthenclickClientNetworkUtility.IftheSQLServerclienttoolsarenotinstalledontheclientcomputer,followthesestepstostartClientNetworkUtility:a.ClickStart,andthenclickRun.b.IntheRundialogbox,typecliconfgintheOpenbox,andthenclickOK.2.IntheSQLServerClientNetworkUtilitywindow,clicktheGeneraltab,andthenenablealltheprotocolsthatyouwanttouse.NoteYoumustatleastenabletheTCP/IPprotocolandthenamedpipesprotocol.103.ClicktheAliastab,andthenverifythealiasesthatareconfiguredfortheinstanceofSQLServer.4.VerifythepropertiesofthealiasestomakesurethattheservernameorIPaddressandtheprotocolareconfiguredcorrectly.Youcancreateanewaliastotesttheconnectivitybyusingtheservername,theIPaddress,orevenbyusingadifferentprotocol.NoteEarlierversionsofMicrosoftDataAccessComponents(MDAC)haveadifferentuserinterfaceforClientNetworkUtility.Therefore,ifyoudonotseetheoptionsthatarelistedinthisarticl

1 / 14
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功