Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
4| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_cuit | varchar | 20 | |
| @p_seccion_mantenimiento | varchar | 20 | |
| @p_tabla | varchar | 100 | |
| @p_fecha | date | 3 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_novedades_html
@p_cuit varchar(20),
@p_seccion_mantenimiento varchar(20),
@p_tabla varchar(100),
@p_fecha date
AS
BEGIN
SET NOCOUNT ON;
select a.html
from monitoreos_resultados as a
where cuit = @p_cuit
and seccion_mantenimiento = @p_seccion_mantenimiento
and tabla = @p_tabla
and fecha = @p_fecha
--and not exists (select * from monitoreos_resultados b where b.cuit = a.cuit and a.seccion_mantenimiento = b.seccion_mantenimiento and b.fecha > a.fecha)
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.obtener_novedades_html
@p_cuit varchar(20),
@p_seccion_mantenimiento varchar(20),
@p_tabla varchar(100),
@p_fecha date
AS
BEGIN
SET NOCOUNT ON;
select a.html
from monitoreos_resultados as a
where cuit = @p_cuit
and seccion_mantenimiento = @p_seccion_mantenimiento
and tabla = @p_tabla
and fecha = @p_fecha
--and not exists (select * from monitoreos_resultados b where b.cuit = a.cuit and a.seccion_mantenimiento = b.seccion_mantenimiento and b.fecha > a.fecha)
END
GO
Depends On
1Used By
No items found