dbo.backend_obtener_sociedades_SC_100

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <31 Jul 2017>
-- Description: <obtener todas las sociedades con "nombre" y sin "documento" en la tabla sociedades_constituciones>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.backend_obtener_sociedades_SC_100
 -- Add the parameters for the stored procedure here
 
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

    -- Insert statements for procedure here
 select distinct TOP 100
  sc.id_fide              as id, 
  sc.razon_social      as nombre, 
  sc.domicilio_sociedad   as domicilio,
        sc.localidad_sociedad   as localidad,
        sc.provincia_sociedad   as provincia,
        sc.fecha_constitucion   as fecha_con,
        sc.flag_soc             as flag
 from sociedades_constituciones sc
    /*
        left join asignacion_cuits_sociedades_constituciones_log a
        on (sc.id_fide = a.id_sociedades_constituciones)
        */

 where (((sc.razon_social is not null) and (sc.razon_social != '')) 
  and ((sc.documento_soc is null) or (sc.documento_soc = ''))
        and (sc.flag_soc is null))
END

GO

Used By

No items found