文章编号: 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。要更改此值,请按照下列步骤操作:
  1. 在“开始”菜单上,单击“运行”。
  2. 键入“Regedit”,然后单击“确定”。
  3. 在“注册表编辑器”中,找到以下注册表项路径:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo
  4. 在“注册表编辑器”的右窗格中,双击“DSQUERY”项。
  5. 在“编辑字符串”对话框的“数值数据”文本框中,键入 DBNETLIB,然后单击“确定”。
  6. 关闭“注册表编辑器”。

方法 2

  • 确保将注册表项 NtfsDisable8dot3NameCreation 设置为 0。该值为 0 可确保能够使用短名称访问带有空格的文件夹。要设置该注册表项,请按照下列步骤操作:
    1. 在“开始”菜单上,单击“运行”。
    2. 键入“Regedit”,然后单击“确定”。
    3. 在“注册表编辑器”中,找到以下注册表项路径:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
    4. 在“注册表编辑器”的右侧,双击“NtfsDisable8dot3NameCreation”项。
    5. 在“编辑字符串”对话框中的“数值数据”文本框中,键入 0。单击“确定”。
    6. 关闭“注册表编辑器”。
  • 确保 TEMP 或 TMP 环境变量没有空格。要确认这一点,请按照下列步骤操作:
    1. 右键单击“我的电脑”,然后单击“属性”。
    2. 在“高级”选项卡上,单击“环境变量”。
    3. 在“<logged user> 的用户变量”列表中,选择“TMP”,然后单击“编辑”。确保“变量值”文本框中没有空格,尤其是没有任何尾随空格,然后单击“确定”。
    4. 选择“TEMP”,然后单击“编辑”。确保“变量值”文本框中没有空格,尤其是没有任何尾随空格,然后单击“确定”。
    5. 如果任一变量值有空格,请创建一个新的没有任何空格的临时文件夹(例如,C:\Temp),然后将其指定为 TEMP 和 TMP 环境变量的变量值。

更多信息

当 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

如果您使用的是带有 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"><![CDATA[SOX030131700075, SOX020923700075
In the SQLSP.LOG, you'll see:

Bugs:
<?xm-deletion_mark author="v-cochen" time="20050217T101602+0800" data="Shiloh 362960"?>
Shiloh 364002
Shiloh 364018
Shiloh 364080

这篇文章中的信息适用于:
  • Microsoft SQL Server 2000 Service Pack 3
关键字:?
kberrmsg kbtshoot kbbug kbregistry kbupgrade kbprb KB814844
Microsoft和/或其各供应商对于为任何目的而在本服务器上发布的文件及有关图形所含信息的适用性,不作任何声明。 所有该等文件及有关图形均"依样"提供,而不带任何性质的保证。Microsoft和/或其各供应商特此声明,对所有与该等信息有关的保证和条件不负任何责任,该等保证和条件包括关于适销性、符合特定用途、所有权和非侵权的所有默示保证和条件。在任何情况下,在由于使用或运行本服务器上的信息所引起的或与该等使用或运行有关的诉讼中,Microsoft和/或其各供应商就因丧失使用、数据或利润所导致的任何特别的、间接的、衍生性的损害或任何因使用而丧失所导致的之损害、数据或利润不负任何责任。
 

文章翻译

 

Related Support Centers