Same 'db_user' name i am using prod and dev.
May the same name, but different SID's and that one is important. So you have an "orphaned user", a database user without a login matching by the SID.
=> Troubleshoot orphaned users (SQL Server)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I restored my production database "DB1" in development server. The database contains 'db_user' schema.
Same 'db_user' name i am using prod and dev.
After restoration, when 'db_users' trying to connect db, getting error "The Database DB1 is not accessible".
Also i checked in errorlog "Login failed for user 'db_user'. Reason: Failed to open the explicitly specified database 'DB1'. [CLIENT: <local machine>]"
i am getting error, when tried to grant access,
Same 'db_user' name i am using prod and dev.
May the same name, but different SID's and that one is important. So you have an "orphaned user", a database user without a login matching by the SID.
=> Troubleshoot orphaned users (SQL Server)