dbo.carga_estado_marcas_externo_new

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

4
Name Data Type Length Description
@p_cuit varchar 20
@p_dato bit 1
@p_tipo varchar 30
@p_acta int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/* 

Setea el estado true/false de:
-busqueda de imagenes en fuente externa 'portaltramites.inpi.gob.ar' (columna: web)
-busqueda de imagenes en directorio propio (columna: directorio)
-busqueda del html en portaltramites.inpi.gob.ar (columna: html)
*/

CREATE OR ALTER PROCEDURE dbo.carga_estado_marcas_externo_new

@p_cuit varchar(20),
@p_dato bit,
@p_tipo varchar(30),
@p_acta int

AS
BEGIN 
 declare @fecha smalldatetime = getdate()
  if(@p_tipo = 'web')
  begin
  update marcas set web = @p_dato,web_fecha_modificacion = @fecha where cuit = @p_cuit and ACTA = @p_acta
  end
 else if(@p_tipo = 'directorio')
  begin
  update marcas set directorio = @p_dato,web_fecha_modificacion = @fecha where cuit = @p_cuit and ACTA = @p_acta
  end
 else
  begin
  update marcas set html = @p_dato,web_fecha_modificacion = @fecha where cuit = @p_cuit and ACTA = @p_acta
  end 
END

GO

Depends On

1

Used By

No items found