Visual Studio for Mac connection to remote MS SQL

2019-07-10 04:02发布

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条回答
仙女界的扛把子
2楼-- · 2019-07-10 04:38

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

查看更多
登录 后发表回答