安装数据库时报错。
我这个是因为安装SQL SERVER时,没有卸载vs。
一般解决方法:
WIN 7安装VS和SQL SERVER的顺序应该是先安装SQL SERVER 然后安装VS,当要重装SQL SERVER的时候,先要卸载之前的SQL SERVER 及VS
1、卸载软件
卸载软件可以通过360之类的删除工具,但是WIN7自带有windows installer clean up工具,对删除microsoft的软件有奇效
除了卸载sql server 2008之外,还要删除和VS有关的所有插件,包括framework。
2、删除之前安装目录下的文件(program files下Microsoft文件夹中关于sql server 2008及vs的文件)
3、删除注册表中的sql server 信息,在启动中输入regedit,启动注册表
删除HKEY_LOCAL_MACHINESOFTWARE 下关于sql server 的注册表信息
删除HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl下关于sql server的注册表信息
4、删除sql server 服务,下载SRVINSTW.exe进行清除即可,或者在cmd.exe下输入sc delete 服务名称 ----的形式进行删除
5、重启计算机,右键sql server2008安装文件,选择以管理员身份安装即可!