Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
2| Name | Data Type | Length | Description |
|---|---|---|---|
| @servicio | varchar | 50 | |
| @activo | bit | 1 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.actualizar_estado_servicio_afip
@servicio varchar(50),
@activo bit
AS
BEGIN
SET NOCOUNT ON;
/*declare @fuente varchar(50)
set @fuente = (select activo from estado_servicios_externos where fuente = @servicio)
if(@fuente != @activo)
begin*/
update estado_servicios_externos set activo = @activo,fecha_novedad = getdate() where servicio = @servicio and fuente = 'AFIP'
--end
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.actualizar_estado_servicio_afip
@servicio varchar(50),
@activo bit
AS
BEGIN
SET NOCOUNT ON;
/*declare @fuente varchar(50)
set @fuente = (select activo from estado_servicios_externos where fuente = @servicio)
if(@fuente != @activo)
begin*/
update estado_servicios_externos set activo = @activo,fecha_novedad = getdate() where servicio = @servicio and fuente = 'AFIP'
--end
END
GO
Depends On
1Used By
No items found