dbo.backend_obtener_id_padron

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@id_padron int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE  dbo.backend_obtener_id_padron 
 -- Add the parameters for the stored procedure here
 @id_padron        int
 
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 padrones.identificador, padrones.numero, padrones.nombre_persona,
 padrones.tipo_persona, padrones.id_padron, padrones.identificacion,
 padrones.sexo, padrones.habilitado, 
 CONVERT(varchar, padrones.iscreated, 103) AS iscreated, 
 CONVERT(varchar, padrones.ismodified, 103) AS ismodified,
 country.country_name, identificadores.country_code,
 identificadores.abreviatura, country.codigo_idioma

 from padrones inner join identificadores on padrones.identificador = identificadores.identificador
 inner join country on identificadores.country_code = country.country_code

 where padrones.id_padron = @id_padron
END

GO

Used By

No items found