The login error occurs when a SQL Server user cannot connect to their default database. The reasons may include:
db_denydatareader
role.Additionally, login accounts belonging to multiple groups may encounter issues if the default database for one of the groups is unavailable.
Contact the MS SQL Server system administrator to resolve the issue. They can:
SELECT name, default_database_name
FROM sys.server_principals
WHERE type = 'S' AND name = '<sql-login>';
db_denydatareader
.© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center