1

I have a SQL Server where admin users can connect locally and remotely, but read only users can only connect locally and get a "Login failed" error when connecting remotely. It's using SQL Server Authentication. Any ideas on what could be happening?

Jorge Guzman
  • 337
  • 2
  • 4
  • 14
  • Further update, the connection only works when i give a user CONTROL DATABASE securables but does not work otherwise. – Jorge Guzman Apr 29 '11 at 14:33

3 Answers3

1

Dynamo's advice is good - if you look at the SQL Server logs for SQL Server 2005 or later, and failed logins are audited, it will give you a state code. If you look up the code, it will give you a better idea of why.

MSDN Login Failed: http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx

http://www.thirdnorm.com/databases/sql-server/error-18456-understanding-login-failed-error-messages-in-sql-server/

Peter Schofield
  • 1,639
  • 9
  • 11
1

You can connect remotely if you have read-only access,there may be some error in DB authentication method.Use DB name to connect using right authorization.

codebee
  • 11
  • 1
0

It's possible that their default database is not set to a database that they have read access to so they are being denied access as soon as they connect. Make sure that the users have the correct database set to their default and retry the connection.

Shane
  • 1,869
  • 4
  • 20
  • 34