dbo.obtener_menu

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@user_id int 4
@id_cliente int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.obtener_menu
@user_id int,
@id_cliente int
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

SELECT cu.id_producto,p.sigla from clientes_usuarios as cu
inner join productos as p on cu.id_producto = p.producto
where cu.user_id = @user_id and cu.cliente = @id_cliente and p.estado_producto = 'A'
END

GO

Used By

No items found