dbo.score_mis_aportes_

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

4
Name Data Type Length Description
@accion varchar 20
@id_score int 4
@resultado varchar 20
@valor decimal 5

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.score_mis_aportes_
@accion varchar(20), 
@id_score int = null,
@resultado varchar(20) = null, 
@valor decimal(5,2)  = null

AS

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

GO

Depends On

1

Used By

No items found