dbo.LN_informe_terceros

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

3
Name Data Type Length Description
@accion varchar 20
@tarea int 4
@informe_terceros int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- Create the stored procedure in the specified schema
CREATE OR ALTER PROCEDURE dbo.LN_informe_terceros
 @accion VARCHAR(20),
 @tarea INT,
 @informe_terceros INT=NULL
-- add more stored procedure parameters here
AS
BEGIN
 -- body of the stored procedure
 IF( UPPER(@accion) = 'UPD_REFTERCERO' )
 BEGIN
 UPDATE informes SET informeid_terceros=@informe_terceros WHERE informe=@tarea;
 RETURN;
 END
 -- LEVANTA EL INFORME DE TERCEROS ASIGNADO AL ID INFORME
 IF ( UPPER(@accion) = 'GET_REFTERCERO' )
 BEGIN
 SELECT informeid_terceros FROM informes WHERE informe=@tarea;
 RETURN;
 END
 
END
GO

Depends On

1

Used By

No items found