CREATE procedure [C6StagingPeriodico].[REPTRIM_WSEISC]  
AS 
BEGIN  
exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEISC'
TRUNCATE TABLE [C6StagingPeriodico].[WSEISC]
INSERT INTO [C6StagingPeriodico].[WSEISC]
           ([RETE]
           ,[DTTRIM]
           ,[CODFIS]
           ,[CODMAN]
           ,[FAMPROD]
           ,[CODPROD]
           ,[SUBPROD]
           ,[CODABI]
           ,[DTSCAD]
           ,[TIPMOV])
SELECT [RETE]
      ,[DTTRIM]
      ,[CODFIS]
      ,[CODMAN]
      ,[FAMPROD]
      ,[CODPROD]
      ,[SUBPROD]
      ,[CODABI]
      ,[DTSCAD]
      ,[TIPMOV]
  FROM FSEI0.FSEI0.[fsei0_pdc].[wseisc]
  exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEISC'
END