I have a database which is in standby / read-only mode in my reporting server. But, I can not add a new user to this database. How can i add a new user to this database?
SQL Server – How to Add a User to a Database in Standby/Read-Only Mode
permissionssql serversql-server-2008sql-server-2008-r2sql-server-2012
Related Question
- SQL Server – How to Change Database Mode to STANDBY
- SQL Server 2008 – Recover Database from Standby/Read-Only Without Standby File
- Sql-server – bring a warm standby SQL Server database online and then return to standby mode
- Sql-server – SQL Server (2012) grant right to regular user to set database in read-only mode
- SQL Server – Resolve Standby Logshipping Failures During Read Operations
- Sql-server – User mapping to a standby database
- SQL Server Log Shipping – Read Only/Standby Different Users
Best Answer
Check if the database is part of logshipping. As the database in secondary server will be in Read-only/standby state. ALtering the database directly will not be allowed.
Identify the primary server and add the user there. This will move to your read-only secondary.
Edit : 1
Make sure the logins exist in both the servers.