When i run this SQL command in Domain User login, there is
COM Error 80020005
SELECT group_database_id FROM sys.databases WHERE name = N'db5'
When i run the same command in windows local user, it runs sucessfully.
How does the domain User login differs?
Backup failed for Server 'hostname\instancename'. (Microsoft.SqlServer.SmoExtended)
Windows local user is likely the account used to install the instance, making it a sysadmin. The domain user likely doesn't have the permissions to access it.
MSDN