2017-09-05 62 views
0

我尝试使用SQL Server身份验证通过VS2017速成版中的数据源配置向导连接到在SQL Server 2016快速版中创建的数据库。 我在SQL Server中创建了用户,当我测试连接完美时,但vs显示错误。同样在服务器属性中,我设置了SQL和Windows身份验证。无法检索数据(SQL Server身份验证)

Server properties

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

回答

0

我终于找到了解决办法。我在创建连接字符串时检查了复选框记住密码...现在可以检索该用户的数据。在连接字符串中添加持久安全性= true。仍然不知道为什么需要进行检查,因为我没有持续的安全性,并且在那里工作,但在我的电脑上没有。

相关问题