dbo.ultimo_informe

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_id_tipo_informe int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
exec [ultimo_informe] 671260
*/

CREATE OR ALTER PROCEDURE dbo.ultimo_informe 
 @p_id_tipo_informe int 
AS
BEGIN
 SET NOCOUNT ON;
 
 select TOP 1 informes.*, LN_tipo_informes.nombre_tipo_informe
 from informes 
 inner join LN_tipo_informes on LN_tipo_informes.idTipoInforme = informes.id_tipo_informe
 where informe_padre is null and informes.id_tipo_informe =  @p_id_tipo_informe order by informe desc

END
GO

Used By

No items found