Medium severitypermission
Power BI Refresh Error:
916
What does this error mean?
The login can connect to SQL Server but does not have a corresponding user in the target database.
Common causes
- 1The login exists at the server level but no user was created in the target database
- 2The database was restored from a backup and login-user mappings were broken (orphaned users)
- 3The login was granted server-level rights but not mapped to a specific database
How to fix it
- 1Step 1: Create a database user for the login: USE [targetdb]; CREATE USER [username] FOR LOGIN [loginname];
- 2Step 2: For orphaned users after a restore, fix with: USE [targetdb]; ALTER USER [username] WITH LOGIN = [loginname];
- 3Step 3: Grant necessary permissions: GRANT SELECT ON SCHEMA::dbo TO [username];
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-916-database-engine-error