dbo.mail_defuncion_error

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.mail_defuncion_error 
AS
BEGIN
    SET NOCOUNT ON;
 
    select c01_cuit as cuit, 
     nombre_persona as nombre, 
     convert(varchar(10),fecha_defuncion,103)as nueva_fecha_defuncion, 
     convert(varchar(10),fecha_defuncion_modified,103)as fecha_defuncion_modified, 
     convert(varchar(10),fecha_defuncion_ant,103)as fecha_defuncion_anterior, 
     convert(varchar(10),fecha_defuncion_ant_modified,103)as carga_fecha_anterior 
  from datos_personas 
 inner join padrones on identificacion = c01_cuit and habilitado = 1 
 
 where fecha_defuncion_modified >= getdate() - 1 
   and fecha_defuncion_ant is not null 

END 
GO

Used By

No items found