安装iis或者snmp服务时文件存在依然提示不存在解决办法

安装iis或者snmp服务时文件存在但依然提示不存在

解决办法:

esentutl /g %windir%\Security\Database\Secedit.sdb

如果有报错

1.切换到命令提示符状态。
2.执行

esentutl /k %windir%\Security\Database\Secedit.sdb

esentutl /g %windir%\Security\Database\Secedit.sdb

对secedit.sdb进行检查。
3.手工备份要修复的数据库文件。
4.执行

esentutl /p %windir%\Security\Database\Secedit.sdb

进行修复,系统会弹出Warning提示框:
“You should only run Repair on damaged or corrupted databases.Repair will not apply information in the transaction log files to the database,and may cause information to be lost.Do you wish to proceed?”
单击OK,开始修复。

参考:http://www.jz5u.com/Article/Catalog38/4022.html

 

 

卸载mssql步骤

卸载mssql步骤
1.在添加删除程序里把所有跟sql有关的软件全部卸载

2.关闭服务
net stop MSSQLSERVER
net stop MSSQLServerADHelper
net stop SQLSERVERAGENT
net stop SQLBrowser
net stop SQLWriter

3.卸载服务
sc delete MSSQLSERVER
sc delete MSSQLServerADHelper
sc delete SQLSERVERAGENT
sc delete SQLBrowser
sc delete SQLWriter

4.删除对应的注册表项
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Native Client
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server 2005 Redist
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer

5.重命名或者删除sql安装目录
一般在
C:\Program Files\Microsoft SQL Server
D:\Program Files\Microsoft SQL Server

6.重启系统,再开始安装