As of now, All i have is a trigger example :
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER TRIGGER [dbo].[trg_SynctblICInventoryCategory]
ON [dbo].[tblICInventoryCategory]
--WITH ENCRYPTION
FOR INSERT, UPDATE
AS
BEGIN
INSERT INTO [SampleData].dbo.ac_CatalogNodes (
CategoryID
, CatalogNodeID
, CatalogNodeTypeID
, OrderBy)
SELECT
isnull(c.CategoryID, 0)
,isnull(p.ProductID, 0)
, 1
,...