dbo.obtener_traducciones_dinamicas

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

4
Name Data Type Length Description
@blade varchar 500
@app_id int 4
@seccion varchar 500
@valor_dinamico bit 1

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Leonel Turchetto>
-- Create date: <25 Sep 2019>
-- Description: <Obtener Todas las traducciones DinĂ¡micas>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_traducciones_dinamicas
@blade varchar(500),
@app_id int,
@seccion varchar(500) = null,
@valor_dinamico bit = 1 -- Si viene 0 devuelve todos 0 y 1 
 -- Add the parameters for the stored procedure here
AS
BEGIN
 SET NOCOUNT ON;
 if (@valor_dinamico = 0)
    select * from traducciones where blade = @blade and app_id = @app_id
 else 
    select * from traducciones where blade = @blade and valor_dinamico = @valor_dinamico and app_id = @app_id
END

GO

Depends On

1

Used By

No items found