An Azure relational database service.
Hey **BharathKumarS-1759
**It sounds like you're looking to set up real-time data replication from your on-premises SQL Server to Azure SQL Database using transactional replication. Let’s tackle your questions one by one.
- Can I create additional tables/ views/ Stored procedures in subscriber Azure SQL database ? And Upsert data in the newly created tables?
- You can create additional database objects like tables or views in the Azure SQL Database subscriber, but you won't be able to replicate data into these newly created objects from the publisher. Replication is limited to the published tables.
- Would creating additional tables/views have any impact on the sync performance?
- Since these additional objects don't participate in replication, their creation should have no direct impact on the replication performance itself. However, keep in mind that they could potentially affect overall performance if they require significant resources.
- Can I add indexes on the tables being replicated from on-prem SQL to Azure SQL?
- Yes, you can add indexes to the replicated tables in the Azure SQL Database. Just ensure that the primary key is maintained on the replicated tables, as this is a requirement for replication.
- Would there be any performance issue on the on-prem SQL server due to this replication setup?
- Some impact on performance can be expected, as replication requires resources for managing changes and sending them over to the Azure SQL Database. The degree of impact can depend on the volume of changes and the hardware/resources of your SQL Server.
- Can I replicate data from tables that do not have any primary key?
- No, replication to Azure SQL Database requires that all tables have a primary key defined. If your tables lack primary keys, you’ll need to add them to enable replication.
https://learn.microsoft.com/en-us/azure/azure-sql/database/replication-to-sql-database?view=azuresql
https://learn.microsoft.com/en-us/sql/relational-databases/replication/transactional/transactional-replication?view=sql-server-ver17
Hope this helps! If you have more questions or need further clarification, feel free to ask!