dbo.backend_procesar_flag_SC

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

3
Name Data Type Length Description
@p_id int 4
@p_flag_soc char 1
@p_flag_int char 1

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <18 Ago 2017>
-- Description: <Agregar flag en sociedades_constituciones a sociedades/integrantes que ya fueron buscados por proceso automatico de asignación de cuits>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.backend_procesar_flag_SC 
 -- Add the parameters for the stored procedure here
 @p_id int,
    @p_flag_soc char(1),
    @p_flag_int char(1)
AS
BEGIN

 SET NOCOUNT ON;

    IF (@p_flag_soc IS NOT NULL) and (@p_flag_soc != '')
    BEGIN
        UPDATE sociedades_constituciones SET
            flag_soc =  @p_flag_soc,
            modified = GETDATE()
        WHERE (id_fide = @p_id)
    END
    ELSE IF (@p_flag_int IS NOT NULL) and (@p_flag_int != '')
    BEGIN
        UPDATE sociedades_constituciones SET
            flag_int =  @p_flag_int,
            modified = GETDATE()
        WHERE (id_fide = @p_id)
    END
END

GO

Used By

No items found