安装了 SQL Server 2008,但运行版本仍然是 2005
不久前,我在一台开发计算机上安装了 SQL Server 2008,该计算机已经从 Visual Studio 中安装了 Sql Server 2005 Express。当我查看程序时,我看到“Microsoft Sql Server 2008”,其中包含管理工作室等。我还可以看到“MS Sql Server 2005”。
当我在 Management Studio 2008 中运行查询以选择在我的计算机上运行的版本时,它显示为 2005,这让我摸不着头脑。当我查看配置管理器时,我看到的只是 SQLEXPRESS 实例正在运行...
考虑到已安装 2008,是否有任何“快速”解决方案可以让 2008 而不是 2005 运行?
A while back I installed SQL Server 2008 on a development machine which already had Sql Server 2005 express from Visual Studio. When I look in my programs, I see 'Microsoft Sql Server 2008', which contains the management studio, etc. As well I can see 'MS Sql Server 2005'.
When I run a query in Management Studio 2008 to select the version running on my machine, it comes up as 2005, and leaves me scratching my head. When I look in the configuration manager, all I see is the SQLEXPRESS instance running ...
Are there any "quick" solutions to get 2008 running instead of 2005, considering 2008 is installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 SQL Server 2005 配置管理器,您将只能看到 2005 及更低版本的实例。
要查看 SQL Server 2008 的实例,您需要确保使用的是 SQL Sever 2008 配置管理器。
最后一个选项是使用服务控制管理器查看所有服务。在这里,您需要查看计算机上运行的 SQL Server 实例。
If your using the SQL Server 2005 Configuration Manager you will only see 2005 instances and lower.
To view instances of SQL Server 2008 you will want to make sure you are using SQL Sever 2008 Configuration Manager.
The final option would be to View All services using the Service Control Manager. Here you will need to look at what instances of SQL Server you have running on the machine.
如果要查找所有实例名称,一种方法是运行 powershell 并执行以下
PS C:\>; gwmi win32_service -filter“名称如'MSSQL%'”| fl DisplayName, pathname
对我来说,结果是
查找具有 MSSQL10 的那个并确保该服务已启动。然后在通过 SSMS 连接时使用该实例名称。
如果由于某种原因您没有安装到默认结构中,您可以随时直接访问 Exe 并检查其版本,例如 2007.100.xxx
我碰巧有 2005 和 2008 Express 以及 2008 standard
如果我更擅长 PowerShell 我会通过管道传递 PathName 来获取版本信息
If you want to find all the instance names, one way is to run powershell and execute the following
PS C:\> gwmi win32_service -filter "name like 'MSSQL%'" | fl DisplayName, pathname
For me the result is
Look for the one that has MSSQL10 and make sure that the service is started. Then use that instance name when connecting via SSMS.
If for some reason you didn't install into the default structure you can always visit the Exe directly and check its version for something like 2007.100.xxx
I happen to have 2005 and 2008 express as well as 2008 standard
If I was better at PowerShell I would have piped the PathName to get the version info