I guess it depends on what you exactly mean by "system tables". If you mean "system tables in the system databases", then that isn't replicated. If you mean "system tables inside the log shipped database" (like the tables behind sys.tables and sys.indexes), then that is replicated. (I know you know this, just wanted to clarify for other readers... :-) .)
Transaction Logshipping without the Logins (Security details)
We would like to set up the Log shipping but we don't want the security details to be copied from the primary database to the secondary database. Is there any way to do that?
Appreciate any help.
SQL Server | Other
5 answers
Sort by: Most helpful
-
-
tibor_karaszi@hotmail.com 4,316 Reputation points
2020-09-21T08:01:02.84+00:00 The logins aren't in the database so that part is already taken care of for you. But do see Shashank's reply, we need more details...
-
m 4,276 Reputation points
2020-09-21T08:07:31.37+00:00 Hi @Anitha John ,
We would like to set up the Log shipping but we don't want the security details to be copied from the primary database to the secondary database. Is there any way to do that?
No. Because the essence of log shipping is restoring the backup files of primary dbs in the secondary instance. And all changes to the system tables are logged operations,security changes are propagated through to the secondary server (or servers) automatically.
You can try to make some changes in the secondary instances after log shipping.
More information: how-to-configure-security-for-sql-server-log-shippingBR,
Mia
If the answer is helpful, please click "Accept Answer" and upvote it.
-
m 4,276 Reputation points
2020-09-22T01:41:21.273+00:00 Hi @Anitha John ,
Is the reply helpful?
BR,
Mia
If the answer is helpful, please click "Accept Answer" and upvote it.
-
Shashank Singh 6,251 Reputation points
2020-09-22T05:02:16.12+00:00 but we don't want the security details to be copied from the primary database to the secondary database. Is there any way to do that?
Mainly, the users list under Security .No, this will be transferred in logshipping because this is part of the database and you can do nothing to stop it. When you restore database all the users are transferred as they are part of the DB, but not the logins as they are at server level.
EDIT: From further comments
But in this case we should make sure that the users should not copied from the primary db to the secondary db.
This is not possible, user will be copied. The other thing is since you are not copying logins(assuming) these users will be orphaned users, the users without any login, and would not work. For a user to work a login has to be associated with it.