dbo.api_buscar_padron

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@p_pais varchar 20
@p_identificacion varchar 20

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
exec [api_buscar_padron] 'AR','20200086032'
*/

CREATE OR ALTER PROCEDURE dbo.api_buscar_padron
@p_pais varchar(20),
@p_identificacion varchar(20)

AS
BEGIN
 SET NOCOUNT ON;
 SELECT top 1 padrones.identificador, identificacion as tax_id,nombre_persona as nombre_persona 
   from dbo.padrones
   inner join identificadores on identificadores.identificador = padrones.identificador
   WHERE padrones.identificacion = @p_identificacion
     and padrones.habilitado = 1
     and identificadores.country_code = @p_pais
END

GO

Used By

No items found