2023年11月27日发(作者:)

安装sqlserver2008时的4个常见错误和解决⽅法

可能由于操作系统不同,或者在安装SQL 2008的时候已经安装SQL其他版本,因此可能会遇到问题,那么这时我们的实际经

验和动⼿测试的能⼒也是⾮常重要的,这样才能少⾛弯路。

问题1安装sql server 2008 R2,安装过程中提⽰错误:此计算机上安装了 Microsoft Visual Studio 2008 的早期版

本。请在安装 SQL Server 2008 前将 Microsoft Visual Studio 2008 升级到 SP1

之前我的电脑上确实装了vs2008,于是我准备去下载⼀个SP1补丁包,⼀看800M的⼤⼩,本来安装这个软件就已经很⿇烦

了,还得花时间下载,那有没有其他更好的办法呢?其实很简单,只需要改⼀下注册表即可,⽅法如下:

解决⽅法:

修改注册表。

运⾏注册表,将HKEY-Local-Machine/Software/Microsoft/DevDiv重命名就⾏。

安装好后再将其改回。

SQL Server安装返回上⼀步,然后再点下⼀步,这个问题就成功解决了。

问题2:安装SQL2008,提⽰删除SQL2005Express⼯具的解决⽅法

在安装SQL2008的时候,提⽰要删除SQL2005EXPRESS⼯具,在⽹上找了很多资料,终于找到⼀个⽐较⽅便的⽅法了,希

望能帮助⼤家。修改注册表:HKEY_LOCAL_MACHINESoftwareMicrosoftMicrosoft SQL Server90ToolsShellSEM,将

ShellSEM项重命名或删除即可。

⽆法安装 SQL Server 2008 Management Studio Express

故障现象:

windows7中已经安装好SQL Server 2008 Express 并且已经安装好SP3,然后从微软官⽹下载SQL Server 2008

Management Studio Express 安装,发现在安装过程中,没有添加 Management ⼯具这⼀项。

解决⽅法:

先使⽤sql server2008安装中⼼(在开始菜单的microsoft sql server 2008⾥⾯有)的维护功能,将express升级到具有⾼级服务的

Express。再安装SQL Server 2008 Management Studio Express,这就可以发现⼯具这个选项。安装成功。

其他提⽰:

在安装SQL Server 2008 Management Studio Express 时会出现此程序存在已知兼容性问题的对话框。如果你确认⾃⼰已

经安装过 SP1 以上的⽂件,并已升级到具有⾼级服务的express,那么不⽤理会这个对话框,直接按运⾏程序这个按钮。不

会有任何问题。

问题3、解决⽆法安装SQL Server 2008 Management Studio Express的问题

我的sql server 2008 expressvisual studio 2010⾃带的,所以当然它没有management studio ,⾃⼰下了⼀个安装,不过⽆

法安装SQL Server 2008 Management Studio Express。提⽰未选择功能。

刚从⽹上找到解决⽅案,本⼈测试通过,再次分享:

VS2010⾃带的SQL ServerExpress简化版的,需要到“SQL Server安装中⼼>维护>版本升级,把它升级成具有⾼级服务的

Express”(很快就可完成)。再运⾏SQL Server 2008 Management Studio Express安装包,随后会再次弹出SQL Server安装

中⼼,选择安装>全新SQL Server独⽴安装或向现有安装添加功能,接下去就可以添加Management Studio了。

下⾯是对具有⾼级服务的express版本的⼀些介绍:

具有⾼级服务的 SQL Server Express 具备 SQL Server 2005 Express Edition 中的全部功能,并且还具有下列功能:

借助 SQL Server 2005 Management Studio Express (SSMSE) 这⼀新的易于使⽤的图形管理⼯具,轻松管理 SQL Server

Express

SQL Server 表中纯字符数据发出全⽂查询。 全⽂查询可以包括词和短语,或者词或短语的多种形式。

对本地关系数据运⾏ SQL Server Reporting Services 报表。

现在,允许management studio express安装⽂件,出现管理⼯具选项了:

问题4、安装程序配置检查RebootRequiredCheck时失败,问题解决⽅法

问题描述:

GlobalRules: 针对规则组“GlobalRules” SQL Server 2008 安装程序配置检查

RebootRequiredCheck

检查是否需要挂起计算机重新启动。挂起重新启动会导致安装程序失败。

失败

需要重新启动计算机。必须重新启动计算机才能安装 SQL Server

其它检查都是已通过

解决⽅法:

还是⽤修改注册表的⽅法

1. 在开始->运⾏中输⼊regedit

2. 找到 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager 位置

3. 将右边窗⼝中名称为PendingFileRenameOperations的项删除,然后确认

4. 重新启⽤安装或修复程序,即可。

问题5SQL Server 2008安装失败:Error writing to file:.

问题描述

==========

SQL Server 2008 标准版安装在Windows Server 2008上失败,错误为:

Error writing to file:. Verify that you have access to that directory.

故障排查

==========

根据错误⽇志,存在以下错误信息:

1.在安装到Install_sql_common_core_Cpu32_Action InstallFiles. Copying new files时出现以下错误信息:

Error writing to file:. Verify that you have access to that directory.

2.在安装到Install_SqlBrowser_Cpu32_Action时出现以下错误信息:

系统⽆法从指定的设备上读取(The system cannot read from the specified device.

3.中存在以下错误信息:

复制代码 代码如下:

Bootstrap/Log/20110620_153155/Registry_SOFTWARE_Microsoft__

2011-06-20 16:07:03 Slp: 系统⽆法从指定的设备上读取。

2011-06-20 16:07:03 Slp: Watson bucket for Msi based failure has been created

2011-06-20 16:07:03 Slp: InstallPackage: MsiInstallProduct returned the result code 30.

2011-06-20 16:07:03 Slp: Retry-able MSI return code detected: 30

2011-06-20 16:07:03 Slp: Prompting user if they want to retry this action due to the following failure:

2011-06-20 16:07:03 Slp: ----------------------------------------

2011-06-20 16:07:03 Slp: The following is an exception stack listing the exceptions in outermost to innermost order

2011-06-20 16:07:03 Slp: Inner exceptions are being indented

2011-06-20 16:07:03 Slp:

2011-06-20 16:07:03 Slp: Exception type: ensionException

2011-06-20 16:07:03 Slp: Message:

2011-06-20 16:07:03 Slp: SQL Server 安装程序在运⾏ Windows Installer ⽂件时遇到错误。

2011-06-20 16:07:03 Slp:

2011-06-20 16:07:03 Slp: Windows Installer 错误消息: 系统⽆法从指定的设备上读取。

2011-06-20 16:07:03 Slp:

2011-06-20 16:07:03 Slp: Windows Installer ⽂件: N:/x86/setup/

2011-06-20 16:07:03 Slp: Windows Installer ⽇志⽂件: C:/Program Files/Microsoft SQL Server/100/Setup

Bootstrap/Log/20110620_153155/SqlBrowser_Cpu32_

2011-06-20 16:07:03 Slp: Data:

2011-06-20 16:07:03 Slp: DisableRetry = true

2011-06-20 16:07:03 Slp: Inner exception type: 32Exception

2011-06-20 16:07:03 Slp: Message:

2011-06-20 16:07:03 Slp: 系统⽆法从指定的设备上读取。

2011-06-20 16:07:03 Slp:

2011-06-20 16:07:03 Slp: ----------------------------------------

2011-06-20 16:23:58 Slp: Submitted 5 of 5 failures to the Watson data repository

2011-06-20 16:24:05 Slp: Detected localization resources folder: 1033

2011-06-20 16:24:05 Slp: Detected localization resources folder: 2052

4.SqlBrowser_Cpu32_中存在以下错误信息: