dbo.score_balance_

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

5
Name Data Type Length Description
@accion varchar 20
@id_score int 4
@desde decimal 9
@hasta decimal 9
@valor decimal 5

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.score_balance_
@accion varchar(20), 
@id_score int = null,
@desde decimal(10,2) = null, 
@hasta decimal(10,2) = null, 
@valor decimal(5,2)  = null

AS

BEGIN
 SET NOCOUNT ON;
 if (@accion = 'select')
 begin
  select desde, hasta, valor, id_score from score_balance order by desde
  return
 end
 if (@accion = 'update')
 begin
  update score_balance 
  set 
   desde = @desde, 
   hasta = @hasta,
   valor = @valor
   where id_score = @id_score
  return
 end
END

GO

Depends On

1

Used By

No items found