gpt4 book ai didi

visual-studio-2015 - 我如何知道我的数据库使用的是哪个版本的 SQL Server Express?

转载 作者:行者123 更新时间:2023-12-02 21:07:48 29 4
gpt4 key购买 nike

大约一年前,我开始在 Visual Studio 2013 中开发一个应用程序。数据库是 SQL Server Express 版本。

我现在才回过头来。我已将 VS 升级到 2015 社区版并想使用 DB。但我打不开它。我收到的错误是:

The Data Source value in the connection string specifies an instance of SQL Server that is not installed. To resolve this issue, you can either choose to install the matching instance of SQL Server or modify the Data Source value in the connection string.

我试图找出旧数据库的版本,以便我可以安装正确的版本或更改连接字符串。如何查明数据库所在的 SQL Server Express 版本?

最佳答案

1) 单击服务器资源管理器并找到您的数据库

2) 右键单击​​您的解决方案的数据库

3) 在菜单上单击新查询

4) 关于新的查询类型:select @@version

5)读取您的数据库版本

关于visual-studio-2015 - 我如何知道我的数据库使用的是哪个版本的 SQL Server Express?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35186375/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com