手工卸载SQL Server 2000数据库

来源:互联网 发布:2016淘宝假发货刷信誉 编辑:程序博客网 时间:2024/05/21 04:20
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
在给各合作学校安装应用系统过程中,发现学校里的SQL Server 2000数据库损坏了重装后都发生了同样的问题,那就是安装SQL Server数据库不成功。原因:即使你通过控制面板里的“添加/删除程序” 正常的卸载SQL Server数据库,但是,SQL Server还是没有完全卸载干净,还需要手工进行一些操作。因此重新安装不成功,很多人只好重装系统解决。经过较长时间的摸索和实践总结,我找到了一点技巧方法,在这里与大家分享。

操作步骤:

在进行操作之前,建议备份好注册表以及重要的数据库文件。

 首先,我们尝试用IsUninst.exe卸载程序来安全卸载Windows中的程序和与其相关的组件:

 

(1)运行Regedit.exe,然后找到以下注册表项:

 

HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/windows/CurrentVersion/Uninstall

 

(2)Uninstall项下,找到要删除的Microsoft SQL Server2000 实例的产品代码。

 

(3)在任务栏上,单击【开始】按钮,然后单击【运行】按钮。在运行对话框中,复制并粘贴以下命令,例如:

 

C:/WINNT/IsUninst.exe-f “C:/Program Files/Microsoft SQL Server/MSSQLServer1/Uninst.is”

 

-c”C:/Program Files/Microsoft SQL Server/MSSQLServer1/SQLsun.dll”-MsSQL.miff I=Il

 

其中:MSSQL Serverl表示安装的实例名为Serverl。

 

如果以上方法不奏效,则我们必须手工来进行删除操作。

 

(1) 删除以下注册表子项:

 

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSSQLServer

 

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/ Microsoft SQL Server

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSQLServer

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/SQLServer AGENT

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services /MSSQLServerADHelper

 

(2) 手工删除安装目录,默认情况下位于:

 

C:/Program Files/Microsoft SQL Server

 

(3) 卸载Microsoft Search 服务,还需要删除:

 

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Search

 

(4) 卸载Microsoft 全文查询,还需要删除:

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSFTPSVC

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSCNTRS

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSEARCH

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSGATHERVER

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSGTHRSVC

 

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSSINDEX

 

(5) 如果要卸载的是命名实例,则在相应的注册表键的MSSQLServer,SQLServerAGENT和MSSQLServerADHelper后加上“/”和相应的实例名。

 

到此我们就成功的完全卸载了SQL Server数据库。<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击