CREATE procedure [C6StagingPeriodico].[REPTRIM_WSEIPV]  
AS 
BEGIN  
exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIPV'
TRUNCATE TABLE [C6StagingPeriodico].[WSEIPV]
INSERT INTO [C6StagingPeriodico].[WSEIPV]
           ([DTTRIM]
           ,[RETE]
           ,[CODFIS]
           ,[CODCONF]
           ,[IMPVER]
           ,[DTRIFE]
           ,[SUBSET]
           ,[CODMAN]
		   ,[BASE_PREZZ])
SELECT [DTTRIM]
      ,[RETE]
      ,[CODFIS]
      ,[CODCONF]
      ,[IMPVER]
      ,[DTRIFE]
      ,[SUBSET]
      ,[CODMAN]
	  ,[BASE_PREZZ]
  FROM FSEI0.sfsei0.[fsei0_pdc].[wseipv]
  exec [C6StagingPeriodico].[RP_W6LogBatch] 'Replica WSEIPV'
END