How can I determine installed SQL Server instances and their versions?
所以这里是我的问题:
我想看看我的电脑安装了什么版本的sql
如果我正在运行查询并键入:
select @@version
它告诉我运行的线程版本. (我不想要的)
我想看到所有的版本 – 如果安装!
示例:计算机可以具有sql 2000,2005,2008,2008R2
我知道
80 = sql Server 2000 90 = sql Server 2005 100 = sql Server 2008
不过,这不是规则.
自2008年以来,创造了80,90.
看来,唯一的方法是找到什么版本安装(除了regedit)是由sql Server配置管理器.
问题:
1)是否可以通过文件系统,检测我安装了哪些版本?
2)有什么其他方式(除了注册表),看看安装了哪些sql版本?
3)我读到mssql.1是为引擎. MSsql10.sqlEXPRESS怎么样?为什么没有mssql.4号码? MSDN表示,它是已安装组件的连续ID.
解决方法
sql Server 2008 Discovery Report
How can i tell what sql Server features and version do I have
installed? This question has been asked a lot recently. Starting in
sql Server 2008,we added a sql Server discovery report as an option
on the Tools page on the Installation Center. When you click on the
link below,sql Server will be started to discover the sql Server
features.The sql Server Discovery Report is saved to %ProgramFiles%\Microsoft
sql Server\100\Setup Bootstrap\Log\Options:
You can also generate the Discovery report through the command line.
Run “Setup.exe /Action=RunDiscovery” from a command prompt If you add
“/q” to the command line above no UI will be shown,but the report
will still be created in %ProgramFiles%\Microsoft sql Server\100\Setup
Bootstrap\Log\20091112_082147.
参考: