dbo.proceso_actualizar_anio_nacimiento_fallecido

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

3
Name Data Type Length Description
@cuit varchar 50
@anio varchar 50
@defuncion bit 1

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- Create the stored procedure in the specified schema
CREATE OR ALTER PROCEDURE dbo.proceso_actualizar_anio_nacimiento_fallecido
    @cuit VARCHAR(50),
    @anio VARCHAR(50)=NULL,
    @defuncion BIT=NULL
-- add more stored procedure parameters here
AS
BEGIN
    if (@anio is not null and len(@anio) != 4) 
 begin
  set @anio = null
 end
    -- body of the stored procedure
    UPDATE datos_personas SET c02_anio_nac=ISNULL(@anio,c02_anio_nac),defuncion=ISNULL(@defuncion,defuncion) WHERE c01_cuit=@cuit;
    RETURN;
END
GO

Depends On

1

Used By

No items found