安装了 SQL Server 2008,但运行版本仍然是 2005

发布于 2024-11-05 06:31:48 字数 339 浏览 1 评论 0原文

不久前,我在一台开发计算机上安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

趴在窗边数星星i 2024-11-12 06:31:48

如果您使用 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.

椒妓 2024-11-12 06:31:48

如果要查找所有实例名称,一种方法是运行 powershell 并执行以下

PS C:\>; gwmi win32_service -filter“名称如'MSSQL%'”| fl DisplayName, pathname

对我来说,结果是

DisplayName : SQL Server (SQLEXPRESS)
pathname    : "c:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\B
              inn\sqlservr.exe" -sSQLEXPRESS

DisplayName : SQL Server (SQLEXPRESS2005)
pathname    : "c:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn\sqlserv
              r.exe" -sSQLEXPRESS2005

DisplayName : SQL Full-text Filter Daemon Launcher (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
              Binn\fdlauncher.exe" -s MSSQL10.MSSQLSERVER

DisplayName : SQL Server (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
              Binn\sqlservr.exe" -sMSSQLSERVER

DisplayName : SQL Server Active Directory Helper
pathname    : "c:\Program Files\Microsoft SQL Server\90\Shared\sqladhlp90.exe"

DisplayName : SQL Active Directory Helper Service
pathname    : "C:\Program Files\Microsoft SQL Server\100\Shared\SQLADHLP.EXE"

DisplayName : SQL Server Analysis Services (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\bi
              n\msmdsrv.exe" -s "C:\Program Files\Microsoft SQL Server\MSAS10.M
              SSQLSERVER\OLAP\Config"

查找具有 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

DisplayName : SQL Server (SQLEXPRESS)
pathname    : "c:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\B
              inn\sqlservr.exe" -sSQLEXPRESS

DisplayName : SQL Server (SQLEXPRESS2005)
pathname    : "c:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn\sqlserv
              r.exe" -sSQLEXPRESS2005

DisplayName : SQL Full-text Filter Daemon Launcher (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
              Binn\fdlauncher.exe" -s MSSQL10.MSSQLSERVER

DisplayName : SQL Server (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\
              Binn\sqlservr.exe" -sMSSQLSERVER

DisplayName : SQL Server Active Directory Helper
pathname    : "c:\Program Files\Microsoft SQL Server\90\Shared\sqladhlp90.exe"

DisplayName : SQL Active Directory Helper Service
pathname    : "C:\Program Files\Microsoft SQL Server\100\Shared\SQLADHLP.EXE"

DisplayName : SQL Server Analysis Services (MSSQLSERVER)
pathname    : "C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\bi
              n\msmdsrv.exe" -s "C:\Program Files\Microsoft SQL Server\MSAS10.M
              SSQLSERVER\OLAP\Config"

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文