dbo.LN_cliente_productos_ponderacion

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_cliente int 4
@p_producto int 4
@p_ponderacion tinyint 1
@p_user_id int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.LN_cliente_productos_ponderacion 
 -- Add the parameters for the stored procedure here

 @p_cliente        int,
 @p_producto        int,
 @p_ponderacion       tinyint,
 @p_user_id        int
 
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

    -- Insert statements for procedure here

 if (@p_ponderacion >= 0 AND @p_cliente > 0 AND @p_producto > 0) begin

  update LN_cliente_productos SET ponderacion = @p_ponderacion,
   modified = GETDATE(), modified_by = @p_user_id
  where cliente = @p_cliente
  and producto = @p_producto

 end
 
END

GO

Used By

No items found