CREATE procedure [C6StagingPeriodico].[REPTRIM_WSEIAD2]  
AS 
BEGIN  
exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIAD2'
TRUNCATE TABLE [C6StagingPeriodico].[WSEIAD2]
INSERT INTO [C6StagingPeriodico].[WSEIAD2]
           ([DTTRIM]
           ,[RETE]
           ,[CODFIS]
           ,[CODMAN]
           ,[CODCONF]
           ,[DESCPROD]
           ,[CTV]
           ,[PERCCTV]
           ,[COMPL])
SELECT [DTTRIM]
      ,[RETE]
      ,[CODFIS]
      ,[CODMAN]
      ,[CODCONF]
      ,[DESCPROD]
      ,[CTV]
      ,[PERCCTV]
      ,[COMPL]
  FROM FSEI0.FSEI0.[fsei0_pdc].[wseiad]
  exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIAD2'
END