SQL Server之旅:(一)Management Studio Express 安装失败

来源:互联网 发布:linux系统管理员工资 编辑:程序博客网 时间:2024/05/05 20:18

近来在看Web开发方面的书,其中一个例子的数据可以从网上下载一个.mdf文件,然后加载到自己的数据库中使用。这省了重建数据库的时间:)但是我的SQL Server 2005 Express是VS安装的时候自带的,没有Management Studio. 那就装一个吧——装不上,就是安装到最后出错,也没有提示出错原因。天啊,没有想到在win7上安装MS这么麻烦。Google一下吧,一个小时过去了,终于找到了完美的解决方案,记录下来备忘:

 

解决问题的办法是在微软的官网论坛上找到的,如下:

For Windows 7 64 bit you have to use the 64 bit CMD prompt (I didn't even know there was a separate version) and then run this as administrator. So I did the following…
1. Right click on desktop and click NEW – SHORTCUT
2. Create shortcut to C:/Windows/SysWOW64/cmd.exe
3. Right click on the new shortcut and Run AS ADMINISTRATOR
4. Enter full path and file name:
e.g. C:/Users/[YOUR NAME]/Downloads/SQLServer2005_SSMSEE_x64.msi
Where [YOUR NAME] is the windows user you are using.

(引自:http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/7387d3c1-22c9-4d26-8c0d-a8f8f4c72b36)

 

用中文来说,就是两点:

    1、找到%我windir%/SysWow64下面的cmd.exe,单击右键Run as administrator;

    2、把从官网上下载到的SQLServer2005_SSMSEE_x64.msi文件的全路径copy到命令行上,回车执行;

为什么需要如此复杂的安装步骤,而不是直接双击安装呢?说不太清楚,就是x86和x64的问题,再加上权限问题。纠缠其中一个都够复杂了,还需要同时处理其中两个!!!照做就是了!

原创粉丝点击