CREATE procedure [C6StagingPeriodico].[REPTRIM_WSEIBO]  
AS 
BEGIN  
exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIBO'
TRUNCATE TABLE [C6StagingPeriodico].[WSEIBO]
INSERT INTO [C6StagingPeriodico].[WSEIBO]
           ([RETE]
           ,[DTTRIM]
           ,[CODFIS]
           ,[CODMAN]
           ,[CODCONF]
           ,[CODPROD]
           ,[NUMPOL]
           ,[CTV]
           ,[BONUSM]
           ,[DTDECM]
           ,[BONUS5]
           ,[DTDEC5]
           ,[BONUS10]
           ,[DTDEC10])
SELECT [RETE]
      ,[DTTRIM]
      ,[CODFIS]
      ,[CODMAN]
      ,[CODCONF]
      ,[CODPROD]
      ,[NUMPOL]
      ,[CTV]
      ,[BONUSM]
      ,[DTDECM]
      ,[BONUS5]
      ,[DTDEC5]
      ,[BONUS10]
      ,[DTDEC10]
  FROM FSEI0.FSEI0.[fsei0_pdc].[wseibo]
  exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIBO'
END