2023年6月21日发(作者:)

安装sqlserver2008时的4个常见错误和解决⽅法可能由于操作系统不同,或者在安装SQL 2008的时候已经安装SQL其他版本,因此可能会遇到问题,那么这时我们的实际经验和动⼿测试的能⼒也是⾮常重要的,这样才能少⾛弯路。问题1:安装sql server 2008 R2,安装过程中提⽰错误:此计算机上安装了 Microsoft Visual Studio 2008 的早期版本。请在安装 SQL Server 2008 前将 Microsoft Visual Studio 2008 升级到 SP1。之前我的电脑上确实装了vs2008,于是我准备去下载⼀个SP1补丁包,⼀看800多M的⼤⼩,本来安装这个软件就已经很⿇烦了,还得花时间下载,那有没有其他更好的办法呢?其实很简单,只需要改⼀下注册表即可,⽅法如下:解决⽅法:修改注册表。运⾏注册表,将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 2008Management 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 express是visual studio 2010⾃带的,所以当然它没有management studio ,⾃⼰下了⼀个安装,不过⽆法安装SQL Server 2008 Management Studio Express。提⽰未选择功能。刚从⽹上找到解决⽅案,本⼈测试通过,再次分享:VS2010⾃带的SQL Server是Express简化版的,需要到“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 ServerExpress。对 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. 重新启⽤安装或修复程序,即可。问题5、SQL 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 created2011-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: 302011-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 order2011-06-20 16:07:03 Slp: Inner exceptions are being indented2011-06-20 16:07:03 Slp:2011-06-20 16:07:03 Slp: Exception type: ensionException2011-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/SetupBootstrap/Log/20110620_153155/SqlBrowser_Cpu32_2011-06-20 16:07:03 Slp: Data:2011-06-20 16:07:03 Slp: DisableRetry = true2011-06-20 16:07:03 Slp: Inner exception type: 32Exception2011-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:57 Slp: Error result: -21-06-20 16:23:57 Slp: Result facility code: 12032011-06-20 16:23:57 Slp: Result error code: 12011-06-20 16:23:57 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine2011-06-20 16:23:57 Slp: Sco: Attempting to open registry subkey Software/Microsoft/PCHealth/ErrorReporting/DW/Installed2011-06-20 16:23:57 Slp: Sco: Attempting to get registry value DW02002011-06-20 16:23:58 Slp: Submitted 5 of 5 failures to the Watson data repository2011-06-20 16:24:05 Slp: Detected localization resources folder: 10332011-06-20 16:24:05 Slp: Detected localization resources folder: 20524.在SqlBrowser_Cpu32_中存在以下错误信息:MSI (s) (30:D4) [16:05:48:937]: Note: 1: 1305 2: N:/x86/setup/ 3: 1117MSI (s) (30:10) [16:07:03:656]: I/O on thread 2992 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 796 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 2172 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 3280 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 3796 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 812 could not be cancelled. Error: 1168MSI (s) (30:D4) [16:07:03:656]: MainEngineThread is returning 30MSI (s) (30:10) [16:07:03:656]: No System Restore sequence number for this installation.系统⽆法从指定的设备上读取。出现以上错误可能是由于系统⽆法从光驱中读取安装⽂件。可能有以下⼏种原因:1.光驱发⽣损坏2.安装光盘中的⽂件发⽣损坏。3.通过远程路径进⾏安装,并且不具有⾜够的权限4.通过远程桌⾯进⾏安装解决办法==========1.将光盘中的⽂件复制粘贴到本地(如果出现错误,请从⽹站上重新获取正确完好的安装⽂件)2.在本地直接安装⽽不使⽤远程安装

2023年6月21日发(作者:)

安装sqlserver2008时的4个常见错误和解决⽅法可能由于操作系统不同,或者在安装SQL 2008的时候已经安装SQL其他版本,因此可能会遇到问题,那么这时我们的实际经验和动⼿测试的能⼒也是⾮常重要的,这样才能少⾛弯路。问题1:安装sql server 2008 R2,安装过程中提⽰错误:此计算机上安装了 Microsoft Visual Studio 2008 的早期版本。请在安装 SQL Server 2008 前将 Microsoft Visual Studio 2008 升级到 SP1。之前我的电脑上确实装了vs2008,于是我准备去下载⼀个SP1补丁包,⼀看800多M的⼤⼩,本来安装这个软件就已经很⿇烦了,还得花时间下载,那有没有其他更好的办法呢?其实很简单,只需要改⼀下注册表即可,⽅法如下:解决⽅法:修改注册表。运⾏注册表,将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 2008Management 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 express是visual studio 2010⾃带的,所以当然它没有management studio ,⾃⼰下了⼀个安装,不过⽆法安装SQL Server 2008 Management Studio Express。提⽰未选择功能。刚从⽹上找到解决⽅案,本⼈测试通过,再次分享:VS2010⾃带的SQL Server是Express简化版的,需要到“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 ServerExpress。对 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. 重新启⽤安装或修复程序,即可。问题5、SQL 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 created2011-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: 302011-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 order2011-06-20 16:07:03 Slp: Inner exceptions are being indented2011-06-20 16:07:03 Slp:2011-06-20 16:07:03 Slp: Exception type: ensionException2011-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/SetupBootstrap/Log/20110620_153155/SqlBrowser_Cpu32_2011-06-20 16:07:03 Slp: Data:2011-06-20 16:07:03 Slp: DisableRetry = true2011-06-20 16:07:03 Slp: Inner exception type: 32Exception2011-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:57 Slp: Error result: -21-06-20 16:23:57 Slp: Result facility code: 12032011-06-20 16:23:57 Slp: Result error code: 12011-06-20 16:23:57 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine2011-06-20 16:23:57 Slp: Sco: Attempting to open registry subkey Software/Microsoft/PCHealth/ErrorReporting/DW/Installed2011-06-20 16:23:57 Slp: Sco: Attempting to get registry value DW02002011-06-20 16:23:58 Slp: Submitted 5 of 5 failures to the Watson data repository2011-06-20 16:24:05 Slp: Detected localization resources folder: 10332011-06-20 16:24:05 Slp: Detected localization resources folder: 20524.在SqlBrowser_Cpu32_中存在以下错误信息:MSI (s) (30:D4) [16:05:48:937]: Note: 1: 1305 2: N:/x86/setup/ 3: 1117MSI (s) (30:10) [16:07:03:656]: I/O on thread 2992 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 796 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 2172 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 3280 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 3796 could not be cancelled. Error: 1168MSI (s) (30:10) [16:07:03:656]: I/O on thread 812 could not be cancelled. Error: 1168MSI (s) (30:D4) [16:07:03:656]: MainEngineThread is returning 30MSI (s) (30:10) [16:07:03:656]: No System Restore sequence number for this installation.系统⽆法从指定的设备上读取。出现以上错误可能是由于系统⽆法从光驱中读取安装⽂件。可能有以下⼏种原因:1.光驱发⽣损坏2.安装光盘中的⽂件发⽣损坏。3.通过远程路径进⾏安装,并且不具有⾜够的权限4.通过远程桌⾯进⾏安装解决办法==========1.将光盘中的⽂件复制粘贴到本地(如果出现错误,请从⽹站上重新获取正确完好的安装⽂件)2.在本地直接安装⽽不使⽤远程安装