dbo.backend_modificar_CIUU_ramo

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@cod_ramo int 4
@descripcion varchar 1000

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.backend_modificar_CIUU_ramo
@cod_ramo int,
@descripcion varchar(1000)

AS
BEGIN
    SET NOCOUNT ON;

 update ramos 
   set descripcion = @descripcion
 where cod_ramo = @cod_ramo
     and tipo_ramo = 'R'

 update ramos 
    set descripcion = @descripcion
    where cod_ramo = @cod_ramo
      and cod_subramo = @cod_ramo
   and tipo_ramo = 'S' -- porque se guarda el mismo nombre en el subramo con el mismo codigo del ramo
 
END

GO

Depends On

1

Used By

No items found