Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @client_id | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_secciones_mantenimiento
@client_id int
-- Secciones habililtadas para el servicio de monitoreo
AS
BEGIN
SET NOCOUNT ON;
begin
select id_seccion,nombre_seccion from productos_secciones
where
--visible = 1 AND
mantenimiento = 1
order by nombre_seccion
/*
and exists (select * from usuarios_productos up
where up.cliente = @client_id
and up.id_producto = productos_secciones.producto
and up.activo = 1)
*/
end
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.obtener_secciones_mantenimiento
@client_id int
-- Secciones habililtadas para el servicio de monitoreo
AS
BEGIN
SET NOCOUNT ON;
begin
select id_seccion,nombre_seccion from productos_secciones
where
--visible = 1 AND
mantenimiento = 1
order by nombre_seccion
/*
and exists (select * from usuarios_productos up
where up.cliente = @client_id
and up.id_producto = productos_secciones.producto
and up.activo = 1)
*/
end
END
GO
Depends On
1Used By
No items found