SQL Server – How to Add a User to a Database in Standby/Read-Only Mode

permissionssql serversql-server-2008sql-server-2008-r2sql-server-2012

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?

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.