Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @palabras | varchar | 8000 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.backend_obtener_edictos_homonimos
@palabras varchar(8000) /*= -- 'NEAR((RODRIGUEZ,JUAN,MANUEL),0,true) OR NEAR((RODRIGUEZ,MANUEL,JUAN),0,true) OR NEAR((JUAN,RODRIGUEZ,MANUEL),0,true) OR NEAR((JUAN,MANUEL,RODRIGUEZ),0,true) OR NEAR((MANUEL,RODRIGUEZ,JUAN),0,true) OR NEAR((MANUEL,JUAN,RODRIGUEZ),0,true)'
*/
AS
BEGIN
--declare @palabras varchar(8000) = 'NEAR((RODRIGUEZ,JUAN,MANUEL),0,true) OR NEAR((RODRIGUEZ,MANUEL,JUAN),0,true) OR NEAR((JUAN,RODRIGUEZ,MANUEL),0,true) OR NEAR((JUAN,MANUEL,RODRIGUEZ),0,true) OR NEAR((MANUEL,RODRIGUEZ,JUAN),0,true) OR NEAR((MANUEL,JUAN,RODRIGUEZ),0,true)'
SET NOCOUNT ON
select distinct top 50 id_fide, id_boletin,
provincia_boletin = IIF(provincias.prv_nombre is null, sociedades_constituciones.provincia_sociedad, provincias.prv_nombre),
--provincias.prv_nombre as provincia_boletin,
convert(varchar(11),fecha_publicacion,103) as fechab,fecha_publicacion, cast(contenido_archivo as varchar(max)) AS contenido_archivo,razon_social
from sociedades_constituciones
left join provincias on provincias.prv_codigo = sociedades_constituciones.provincia_boletin and pai_codigo_ifx = 54
/*
where (documento_soc is null or documento_soc = '') and (contains(nombre_integrante,@palabras) or contains(razon_social,@palabras)) and cast(contenido_archivo as varchar(max)) != ''
*/
where (documento_soc is null or documento_soc = '') and contains(razon_social,@palabras)
/*
(
((documento_soc is null or documento_soc = '') and (contains(razon_social,'rebolucion')))
or ((cuit_int is null or cuit_int = '' or len(cuit_int)<11) and (contains(nombre_integrante,'rebolucion')))
)
*/
and cast(contenido_archivo as varchar(max)) != ''
order by fecha_publicacion desc
/*
where (
((documento_soc is null or documento_soc = '') and (contains(razon_social,@palabras)))
or ((cuit_int is null or cuit_int = '' or len(cuit_int)<11) and (contains(nombre_integrante,@palabras)))
)
and cast(contenido_archivo as varchar(max)) != ''
order by fecha_publicacion desc
*/
END
/*
select TOp 100 * from sociedades_constituciones where provincia_boletin is not null and provincia_boletin != 'C' razon_social ='PARKINGRM S.R.L.' and (documento_soc = '' or documento_soc is null)
select * from sociedades_constituciones where cuit_int = '20250070498'
select * from EDICTOS where cuit_integrante = '20250070498'
HOLDING PARKING S.R.L. 1) 6/7/15, 2) María Josefina Piccione, 24/12/75, DNI24524648, Miguel Botbol, 5/3/71, DNI22425226, ambos argentinos, casados, comerciantes, San Benito de Palermo 1572, Piso 2º, Caba, 3) HOLDING PARKING S.R.L., 4) 99 años, 5) alquiler de espacios físicos cubiertos y/o descubiertos, para el estacionamiento de automóviles, camiones, camionetas, combys, motos, motocicletas, bicicletas, y vehículos similares, de forma fraccionada por hora, estadía, mes, incluido las actividades accesorias y complementarias relacionadas directamente con el objeto social, 6) $ 100.000,- cuotas $ 1,- cada una, 7) Miguel Botbol 90%, María Josefina Piccione 10%, 8) 30/6, 9) San Benito de Palermo 1572, Piso 2º, Caba, 10) Gerente: Miguel Botbol, domicilio especial: San Benito de Palermo 1572, Piso 2º, Caba, Autorizado según instrumento privado Contrato de fecha 06/07/2015. RAFAEL SALAVE Tº: 114 Fº: 344 C.P.A.C.F. e. 14/07/2015 Nº 118469/15 v. 14/07/2015
HOLDING PARKING S.R.L. 1) 6/7/15; 2) María Josefina Piccione, 24/12/75, DNI24524648; Miguel Botbol, 5/3/71, DNI22425226; ambos argentinos, casados, comerciantes, San Benito de Palermo 1572, Piso 2º, Caba; 3) HOLDING PARKING S.R.L.; 4) 99 años; 5) alquiler de espacios físicos cubiertos y/o descubiertos, para el estacionamiento de automóviles, camiones, camionetas, combys, motos, motocicletas, bicicletas, y vehículos similares, de forma fraccionada por hora, estadía, mes; incluido las actividades accesorias y complementarias relacionadas directamente con el objeto social; 6) $ 100.000,- cuotas $ 1,- cada una; 7) Miguel Botbol 90%; María Josefina Piccione 10%; 8) 30/6; 9) San Benito de Palermo 1572, Piso 2º, Caba; 10) Gerente: Miguel Botbol, domicilio especial: San Benito de Palermo 1572, Piso 2º, Caba; Autorizado según instrumento privado Contrato de fecha 06/07/2015. RAFAEL SALAVE Tº: 114 Fº: 344 C.P.A.C.F. e. 14/07/2015 Nº 118469/15 v. 14/07/2015
select * from sociedades_constituciones where cuit_int = '23224252269'
select * from EDICTOS where cuit_integrante = '23224252269'
*/
GO
GO
CREATE OR ALTER PROCEDURE dbo.backend_obtener_edictos_homonimos
@palabras varchar(8000) /*= -- 'NEAR((RODRIGUEZ,JUAN,MANUEL),0,true) OR NEAR((RODRIGUEZ,MANUEL,JUAN),0,true) OR NEAR((JUAN,RODRIGUEZ,MANUEL),0,true) OR NEAR((JUAN,MANUEL,RODRIGUEZ),0,true) OR NEAR((MANUEL,RODRIGUEZ,JUAN),0,true) OR NEAR((MANUEL,JUAN,RODRIGUEZ),0,true)'
*/
AS
BEGIN
--declare @palabras varchar(8000) = 'NEAR((RODRIGUEZ,JUAN,MANUEL),0,true) OR NEAR((RODRIGUEZ,MANUEL,JUAN),0,true) OR NEAR((JUAN,RODRIGUEZ,MANUEL),0,true) OR NEAR((JUAN,MANUEL,RODRIGUEZ),0,true) OR NEAR((MANUEL,RODRIGUEZ,JUAN),0,true) OR NEAR((MANUEL,JUAN,RODRIGUEZ),0,true)'
SET NOCOUNT ON
select distinct top 50 id_fide, id_boletin,
provincia_boletin = IIF(provincias.prv_nombre is null, sociedades_constituciones.provincia_sociedad, provincias.prv_nombre),
--provincias.prv_nombre as provincia_boletin,
convert(varchar(11),fecha_publicacion,103) as fechab,fecha_publicacion, cast(contenido_archivo as varchar(max)) AS contenido_archivo,razon_social
from sociedades_constituciones
left join provincias on provincias.prv_codigo = sociedades_constituciones.provincia_boletin and pai_codigo_ifx = 54
/*
where (documento_soc is null or documento_soc = '') and (contains(nombre_integrante,@palabras) or contains(razon_social,@palabras)) and cast(contenido_archivo as varchar(max)) != ''
*/
where (documento_soc is null or documento_soc = '') and contains(razon_social,@palabras)
/*
(
((documento_soc is null or documento_soc = '') and (contains(razon_social,'rebolucion')))
or ((cuit_int is null or cuit_int = '' or len(cuit_int)<11) and (contains(nombre_integrante,'rebolucion')))
)
*/
and cast(contenido_archivo as varchar(max)) != ''
order by fecha_publicacion desc
/*
where (
((documento_soc is null or documento_soc = '') and (contains(razon_social,@palabras)))
or ((cuit_int is null or cuit_int = '' or len(cuit_int)<11) and (contains(nombre_integrante,@palabras)))
)
and cast(contenido_archivo as varchar(max)) != ''
order by fecha_publicacion desc
*/
END
/*
select TOp 100 * from sociedades_constituciones where provincia_boletin is not null and provincia_boletin != 'C' razon_social ='PARKINGRM S.R.L.' and (documento_soc = '' or documento_soc is null)
select * from sociedades_constituciones where cuit_int = '20250070498'
select * from EDICTOS where cuit_integrante = '20250070498'
HOLDING PARKING S.R.L. 1) 6/7/15, 2) María Josefina Piccione, 24/12/75, DNI24524648, Miguel Botbol, 5/3/71, DNI22425226, ambos argentinos, casados, comerciantes, San Benito de Palermo 1572, Piso 2º, Caba, 3) HOLDING PARKING S.R.L., 4) 99 años, 5) alquiler de espacios físicos cubiertos y/o descubiertos, para el estacionamiento de automóviles, camiones, camionetas, combys, motos, motocicletas, bicicletas, y vehículos similares, de forma fraccionada por hora, estadía, mes, incluido las actividades accesorias y complementarias relacionadas directamente con el objeto social, 6) $ 100.000,- cuotas $ 1,- cada una, 7) Miguel Botbol 90%, María Josefina Piccione 10%, 8) 30/6, 9) San Benito de Palermo 1572, Piso 2º, Caba, 10) Gerente: Miguel Botbol, domicilio especial: San Benito de Palermo 1572, Piso 2º, Caba, Autorizado según instrumento privado Contrato de fecha 06/07/2015. RAFAEL SALAVE Tº: 114 Fº: 344 C.P.A.C.F. e. 14/07/2015 Nº 118469/15 v. 14/07/2015
HOLDING PARKING S.R.L. 1) 6/7/15; 2) María Josefina Piccione, 24/12/75, DNI24524648; Miguel Botbol, 5/3/71, DNI22425226; ambos argentinos, casados, comerciantes, San Benito de Palermo 1572, Piso 2º, Caba; 3) HOLDING PARKING S.R.L.; 4) 99 años; 5) alquiler de espacios físicos cubiertos y/o descubiertos, para el estacionamiento de automóviles, camiones, camionetas, combys, motos, motocicletas, bicicletas, y vehículos similares, de forma fraccionada por hora, estadía, mes; incluido las actividades accesorias y complementarias relacionadas directamente con el objeto social; 6) $ 100.000,- cuotas $ 1,- cada una; 7) Miguel Botbol 90%; María Josefina Piccione 10%; 8) 30/6; 9) San Benito de Palermo 1572, Piso 2º, Caba; 10) Gerente: Miguel Botbol, domicilio especial: San Benito de Palermo 1572, Piso 2º, Caba; Autorizado según instrumento privado Contrato de fecha 06/07/2015. RAFAEL SALAVE Tº: 114 Fº: 344 C.P.A.C.F. e. 14/07/2015 Nº 118469/15 v. 14/07/2015
select * from sociedades_constituciones where cuit_int = '23224252269'
select * from EDICTOS where cuit_integrante = '23224252269'
*/
GO
Depends On
2Used By
No items found