1.停止所有SQL Server服务
2.在“控制面板-卸载程序”中卸载SQL Server 2005相关程序,要记得最后一个卸载Microsoft SQL Server 2005
3.用SrvInstw.exe删除所有SQL服务
4.清除注册表
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Native Client
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server 2005 Redist
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQLXML4
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLSERVER
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServerADHelper
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServerOLAPService
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLBrowser
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLWriter
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Native Client
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server 2005 Redist
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\SQLXML4
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server
5.删除磁盘上的残留文件