dbo.Fuentes_igj_asambleas

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

9
Name Data Type Length Description
@numero_correlativo varchar 50
@tipo_societario varchar 50
@descripcion_tipo_societario varchar 250
@razon_social varchar 250
@tipo_asamblea varchar 250
@descripcion_tipo_asamblea varchar 250
@fecha_realizacion date 3
@fecha_presentacion date 3
@fecha_fuente date 3

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.Fuentes_igj_asambleas
    @numero_correlativo VARCHAR(50),
    @tipo_societario varchar(50)=NULL,
 @descripcion_tipo_societario varchar(250)=NULL,
 @razon_social varchar(250)=NULL,
 @tipo_asamblea varchar(250)=NULL,
 @descripcion_tipo_asamblea varchar(250)=NULL,
 @fecha_realizacion date=NULL,
 @fecha_presentacion date=NULL,
    @fecha_fuente date=NULL
-- add more stored procedure parameters here
AS
BEGIN
    SET NOCOUNT ON;
    -- body of the stored procedure
    IF ( (SELECT COUNT(*) FROM igj_asambleas WHERE numero_correlativo=@numero_correlativo AND tipo_asamblea=@tipo_asamblea AND ISNULL(fecha_realizacion,'')=ISNULL(@fecha_realizacion,'') AND ISNULL(fecha_presentacion,'')=ISNULL(@fecha_presentacion,'') ) = 0 )
        BEGIN
            INSERT INTO igj_asambleas (
                numero_correlativo,
                tipo_societario,
                descripcion_tipo_societario,
                razon_social,
                tipo_asamblea,
                descripcion_tipo_asamblea,
                fecha_realizacion,
                fecha_presentacion,
                fecha_fuente
            ) VALUES (
                @numero_correlativo,
                @tipo_societario,
                @descripcion_tipo_societario,
                @razon_social,
                @tipo_asamblea,
                @descripcion_tipo_asamblea,
                @fecha_realizacion,
                @fecha_presentacion,
                @fecha_fuente
            );
        END
    --
    RETURN;
END
GO

Depends On

1

Used By

No items found