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_cuit_seguimiento | varchar | 20 | |
| @cliente | int | 4 | |
| @user_id | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.monitoreo_por_referencia_eliminar
@p_cuit varchar(20),
@p_cuit_seguimiento varchar(20),
@cliente int,
@user_id int
AS
BEGIN
SET NOCOUNT ON;
--insert into monitoreos (cliente,user_id,cuit,id_referencia_externa,fecha_desde,fecha_vigencia_mantenimiento) values (@cliente,@user_id,@p_cuit_seguimiento,@p_cuit,getdate(),getdate()+365)
update monitoreos set visible = 0 ,fecha_modificacion = getdate() where id_referencia_externa = @p_cuit and cuit = @p_cuit_seguimiento
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.monitoreo_por_referencia_eliminar
@p_cuit varchar(20),
@p_cuit_seguimiento varchar(20),
@cliente int,
@user_id int
AS
BEGIN
SET NOCOUNT ON;
--insert into monitoreos (cliente,user_id,cuit,id_referencia_externa,fecha_desde,fecha_vigencia_mantenimiento) values (@cliente,@user_id,@p_cuit_seguimiento,@p_cuit,getdate(),getdate()+365)
update monitoreos set visible = 0 ,fecha_modificacion = getdate() where id_referencia_externa = @p_cuit and cuit = @p_cuit_seguimiento
END
GO
Depends On
1Used By
No items found