Visual Studio for Mac connection to remote MS SQL Server failed

不羁的心 提交于 2020-01-04 06:55:11

问题


I'm using Visual Studio for Mac 2017 on macOS Sierra with Microsoft EntityframeworkCore and I'm trying to connect to a remote MS SQL Server. If I start the project in Visual Studio on my Windows machine, everything works fine. But the same project on my Mac tells me "A call to SSPI failed" when I try to get data from the SQL Server. I can connect to the SQL Server using the "Oracle SQL Developer" tool on my Mac. So the issue is somewhere in Visual Studio.

The connection string: Server=MySQLServer.domain.de;Database=MyDatabase;User Id=sa;Password=***;

Any ideas? Thanks a lot.


回答1:


Got it. I have to update my MS SQL Server 2008 R2 SP1 to Service Pack 3. Otherwise .Net Core cannot connect: https://github.com/Microsoft/vscode-mssql/issues/666



来源:https://stackoverflow.com/questions/44090015/visual-studio-for-mac-connection-to-remote-ms-sql-server-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!