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
CREATE OR ALTER PROCEDURE dbo.carga_estado_marcas_externo_2
@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
begin
update marcas set directorio = @p_dato,web_fecha_modificacion = @fecha where cuit = @p_cuit and ACTA = @p_acta
end
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.carga_estado_marcas_externo_2
@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
begin
update marcas set directorio = @p_dato,web_fecha_modificacion = @fecha where cuit = @p_cuit and ACTA = @p_acta
end
END
GO
Depends On
1Used By
No items found