文章编号: 814844 - 最后修改: 2007年5月21日 - 修订: 8.1 在安装 SQL Server 2000 Service Pack 3 时可能收到错误消息“Setup was unable to validate the logged user”(安装程序无法验证登录的用户)重要说明:本文包含有关修改注册表的信息。修改注册表之前,一定要先进行备份,并且一定要知道在发生问题时如何还原注册表。有关如何备份、还原和编辑注册表的信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章: 256986?
(http://support.microsoft.com/kb/256986/
)
Microsoft Windows 注册表说明 本页症状在安装了 Microsoft 数据访问组件 (MDAC) 2.6 版或更早版本的计算机上安装 Microsoft SQL Server 2000 Service Pack 3 (SP3) 时,安装可能会失败。您可能会收到以下错误消息: 错误消息:1 Setup was unable to validate the logged user.Press Retry to enter another option, or Cancel to exit setup. 错误消息 2: Setup was unable to verify the state of the server for an upgrade.Verify the server can start and that you provided a valid sa password and restart setup. 替代方法警告:注册表编辑器使用不当可导致严重问题,可能需要重新安装操作系统。Microsoft 不能保证您可以解决因注册表编辑器使用不当而导致的问题。使用注册表编辑器需要您自担风险。 要解决此问题,请使用下列任一方法。 方法 1将注册表项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo\DSQUERY 的值更改为 DBNETLIB。要更改此值,请按照下列步骤操作:
方法 2
更多信息当 SQL Server 2000 Service Pack 3 安装失败并出现“症状”一节提及的错误消息时,将在名为 Sqlsp.log 的 SQL Server Service Pack 安装日志中记录以下信息: 带有 Microsoft Windows NT 身份验证的 SQL Server 2000 SP3 如果您使用的是带有 Windows NT 身份验证的 SQL Server 2000 SP3,则所记录的文本如下所示: 12:07:09 Authenticate access 12:07:09 Begin SDPassword Dialog 12:07:10 End SDPassword Dialog 12:07:10 C:\TEMP\SqlSetup\Bin\scm.exe -Silent 1 -Action 1 -Service MSSQLSERVER -StartupOptions \-T4010 \-T4022 \-m 12:07:10 Process Exit Code: (0) 12:07:10 D:\sp3\x86\BINN\osql.exe -Slpc:<SQL Server Name> -n -d master -Q "exit" -E 12:07:56 Process Exit Code: (1) 12:08:00 C:\TEMP\SqlSetup\Bin\scm.exe -Silent 1 -Action 6 -Service MSSQLSERVER 12:08:15 Process Exit Code: (0) 12:08:16 Setup was unable to verify the state of the server for an upgrade.Verify the server can start and that you provided a valid sa password and restart setup. 12:08:16 End Action DialogShowSdUpgrade 12:08:16 End:ShowDialogs() 12:08:16 Action CleanUpInstall: 12:08:16 Installation Failed. 如果您使用的是带有 SQL 身份验证的 SQL Server 2000 SP3,则所记录的文本如下所示: 11:52:22 Begin:CheckSAPassword 11:52:22 Begin:LogOnUsingBlankSA 11:52:22 D:\sp3\x86\BINN\osql.exe -Slpc:<SQL Server Name> -E -n -d master -Q"Exit(declare @ret int if (select count(*) from master..syslogins where name='sa' AND ( (1 = pwd 11:53:07 Process Exit Code: (1) 11:53:07 End:LogOnUsingBlankSA 11:53:07 Error while detecting SA Blank Password. 12:06:03 Error :While detecting blank pwd 12:06:03 End Action DialogShowSdUpgrade 12:06:03 End:ShowDialogs() 12:06:03 Action CleanUpInstall: 12:06:03 Installation Failed}}> </Formatting></SectionBody></Section><Section Type="References" AutoHeading="Yes"><SectionBody>有关如何下载最新版本的 MDAC 的其他信息,请访问下面的 Microsoft 网站:<Formatting Type="Indent"><PathLink Type="URL" Value="http://msdn2.microsoft.com/en-us/data/aa937695.aspx">http://msdn2.microsoft.com/en-us/data/aa937695.aspx</PathLink></Formatting><Boilerplate BoilerplateName="artxref" Version="2"><Parameter Id="P1"> about how to determine the current version of MDAC on your computer</Parameter><Parameter Id="P2"></Parameter><Parameter Id="P3">307255</Parameter><Parameter Id="P4">Diagnose problems and reconfigure MDAC installations</Parameter> 有关如何确定计算机上当前使用的 MDAC 版本的其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章: <Formatting Type="Indent"><KBLink Type="ContentObject" ContentId="307255" ContentType="KB" LanguageLocale="[LN]">307255</KBLink> 组件检查器:诊断问题并重新配置 MDAC 安装 </Formatting></Boilerplate><Boilerplate BoilerplateName="artxref" Version="2"><Parameter Id="P1"></Parameter><Parameter Id="P2">s</Parameter><Parameter Id="P3">290211</Parameter><Parameter Id="P4">How to obtain the latest SQL Server 2000 service pack</Parameter> 有关其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章: <Formatting Type="Indent"><KBLink Type="ContentObject" ContentId="290211" ContentType="KB" LanguageLocale="[LN]">290211</KBLink> 如何获取最新的 SQL Server 2000 Service Pack </Formatting></Boilerplate><Boilerplate BoilerplateName="xref2" Version="2"><Parameter Id="P1">328290 </Parameter><Parameter Id="P2">"Setup was unable to verify the state of the server for an upgrade" error message when SQL Server Service Pack 2 Setup stops responding</Parameter><Formatting Type="Indent"><KBLink Type="ContentObject" ContentId="328290" ContentType="KB" LanguageLocale="[LN]">328290 </KBLink> PRB:当 SQL Server Service Pack 2 安装程序停止响应时出现错误消息“Setup was unable to verify the state of the server for an upgrade”(安装程序无法验证要升级的服务器的状态) </Formatting></Boilerplate><Boilerplate BoilerplateName="xref2" Version="2"><Parameter Id="P1">308831</Parameter><Parameter Id="P2">SQL Server 2000 Service Pack 1 Setup fails with 703 error message "An internal read error"</Parameter><Formatting Type="Indent"><KBLink Type="ContentObject" ContentId="308831" ContentType="KB" LanguageLocale="[LN]">308831</KBLink> FIX:SQL Server 2000 Service Pack 1 安装失败,并显示 703 错误消息“An internal read error”(内部读取错误) </Formatting></Boilerplate></SectionBody></Section><Section Type="SecureData" AutoHeading="No" Confidentiality="MSInternal"><SectionBody>Author: <Br />Writer: Srikant.Jahangirdar@wipro.com (Partners\v-9srikantj)<Br />Tech Reviewer:siva.samudrala@wipro.com( partners\v-9sivas)<Br />Wipro Editor: subhadra.charyulu@wipro.com (partners\v-9subc) </SectionBody></Section><Section Type="Notice" AutoHeading="No" Confidentiality="MSInternal"><SectionBody><Formatting Type="FixedText"><
