Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @id_usuario | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_productos_usuario
@id_usuario int
AS
BEGIN
SET NOCOUNT ON;
SELECT distinct id_producto from usuarios_productos
where user_id = @id_usuario and activo = 1 and id_producto != '12'
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.obtener_productos_usuario
@id_usuario int
AS
BEGIN
SET NOCOUNT ON;
SELECT distinct id_producto from usuarios_productos
where user_id = @id_usuario and activo = 1 and id_producto != '12'
END
GO
Depends On
1Used By
No items found