Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_contratista | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.Imperium_vista_contratista_Desafectar_Empleados_Todos
@p_contratista int
AS
BEGIN
SET NOCOUNT ON;
DECLARE @periodo_desafectar int = dbo.PeriodoVencido()
delete led_empleados_periodo where contratista_1 = @p_contratista and contratista = contratista_1 and periodo >= @periodo_desafectar
select 'OK' as respuesta
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.Imperium_vista_contratista_Desafectar_Empleados_Todos
@p_contratista int
AS
BEGIN
SET NOCOUNT ON;
DECLARE @periodo_desafectar int = dbo.PeriodoVencido()
delete led_empleados_periodo where contratista_1 = @p_contratista and contratista = contratista_1 and periodo >= @periodo_desafectar
select 'OK' as respuesta
END
GO
Depends On
2Used By
No items found