I have 2 databases on different servers globaly. Both database has these 4 tables in it
- Orders : id, customerid, orderNumber
- Products: id, productCode
- Customer: id, customername
- Orderdetails: id, quantity, orderId, productId
I want to create reporting table which is a denormalized view (1-2 columns for each table) of these tables from both the databases into a centralized database. For that I first implemented transactional replication which replicated the all the columns and data from both the databases into centralized database (worked fine), then I tried to create a trigger on the replicated tables to push the data into the reporting table, but the triggers did not work.
Reporting table : customerId, ordernumber, productcode, customername, Quantity
Is there any recommended way of doing this preferably without triggers?