dbo.obtener_productos_asignados

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
@cliente int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

create OR ALTER PROCEDURE dbo.obtener_productos_asignados 
@user_id int,
@cliente int
AS

BEGIN
 
 select producto,nombre_producto from productos where producto in ( 
  select id_producto from usuarios_productos where user_id  = @user_id and cliente = @cliente and activo = 1
 ) AND estado_producto = 'A'

END

GO

Used By

No items found