dbo.score_personalizado_obtener_configuracion

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@client_id int 4
@user_id int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.score_personalizado_obtener_configuracion
@client_id int,
@user_id int
AS

BEGIN
    SET NOCOUNT ON;
  if ( (select activo from score_permisos where client_id = @client_id and user_id = @user_id) = 1)
    BEGIN
   select grupo,por_cantidad,por_importe,por_antiguedad,cantidad,importe,antiguedad from score_killers_personalizados where client_id = @client_id and user_id = @user_id
  END
    ELSE
    BEGIN
   select grupo,por_cantidad,por_importe,por_antiguedad,cantidad,importe,antiguedad from score_killers_personalizados where client_id = @client_id
  END
END

GO

Used By

No items found