dbo.backend_busqueda_padron_marcas

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@p_titular varchar 250

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <08 Sep 2017>
-- Description: <Buscador padrón personalizado para marcas, 
-- busca cuits en padrón por: nombre persona pertenecientes a ARGENTINA
-- >
-- =============================================
CREATE OR ALTER PROCEDURE dbo.backend_busqueda_padron_marcas
 -- Add the parameters for the stored procedure here
 @p_titular varchar(250)
AS
BEGIN
 SET NOCOUNT ON;

 if (@p_titular is not null) and (@p_titular != '')
 begin
  select top 100 identificacion as cuit, nombre_persona, id_padron from padrones p
        inner join identificadores i on (p.identificador = i.identificador)
        where (CONTAINS(p.nombre_persona, @p_titular)) and (i.country_code = 'AR') and habilitado = 1
 end
END

GO

Used By

No items found