Warm tip: This article is reproduced from serverfault.com, please click

Error connecting to a remote SQL server database Visual Studio 2017

发布于 2017-03-28 16:33:12

I have an SQL server 2016 instance running on Windows server 2016, I'm trying to connect to the DB from a remote PC in Visual Studio 2017 Community using the Server Explorer. The connection is successful and I can see the Databases available on the server and login just fine but when I try to expand the tables folder I get this error:

Failed to retrieve data for this request
Failed to connect to server (local)
Login Failed for user 'xxxxx'

The thing is I can connect just fine the same way using Visual Studio 2015 Enterprise means I can see the tables and alter them.

I made sure that the user had all the permissions granted on the server, And to me it doesn't seem to be a permission issue since the connection work just fine in VS 2015.

Questioner
Fadi Banna
Viewed
0
Kiratijuta 2018-08-08 13:42:07

This would help. Make sure you check the "Save my password" checkbox when you add new database connection view picture.