I have requirement with below for SQL database replication.
- I have two separate SQL database servers on same network, one will be used as primary and another one as secondary.
- Primary is a central source of data, and I have ETL which load data from source systems to central database on daily basis (once in a day). This daily data will need to be replicated over to secondary server and application will be connected to secondary server to use for some analysis purpose. Additional processing and reporting logic will be done at secondary server. This DB on secondary server need to be in read/write mode, however this updates does not need to replicated back to primary as it will be additional new table data.
- Different security settings need to apply to both servers.
What type of database replication is best suited for such scenario? Database size can be from a few GBs up to 1TB.
Thanks.
Shekar Kola
2,4772 gold badges11 silver badges24 bronze badges
-
I suggest you add to your post the size of the database, as that can affect what tech is suitable.Tibor Karaszi– Tibor Karaszi2022年06月05日 09:16:55 +00:00Commented Jun 5, 2022 at 9:16
-
Thanks for reply. DB size can be few GBs up to 1TB.Patricia– Patricia2022年06月05日 09:31:59 +00:00Commented Jun 5, 2022 at 9:31
-
@Patricia. it's best to add relevant information to your question rather than comments for visibility. I did that for you.Dan Guzman– Dan Guzman2022年06月05日 12:14:24 +00:00Commented Jun 5, 2022 at 12:14
1 Answer 1
Assuming you would be modifying data on Primary server only once a day, there are two methods should work for you
- Daily refresh (Restore Full backup from Primary after ETL process is done to Secondary server)
- If all the tables are not needed on Secondary server, you can configure snapshot replication and schedule it to run once a day, of course after ETL is done on Primary.
answered Jun 6, 2022 at 8:21
-
Thanks Gaurav for reply.Patricia– Patricia2022年06月09日 12:13:00 +00:00Commented Jun 9, 2022 at 12:13
lang-sql