Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
14| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_cliente | int | 4 | |
| @p_locacion | int | 4 | |
| @p_tipo_acceso | varchar | 1 | |
| @p_usuario_control | int | 4 | |
| @p_contratista | int | 4 | |
| @p_empleado | int | 4 | |
| @p_vehiculo | int | 4 | |
| @p_autorizante | int | 4 | |
| @p_detalle_control | text | -1 | |
| @p_excepcion | tinyint | 1 | |
| @p_estado_autorizacion | varchar | 1 | |
| @p_vigencia_excepcion | datetime | 8 | |
| @p_autoriza_rechaza | datetime | 8 | |
| @p_whitelist_id_padron | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Imperium_Control_Acceso_Insert
-- Add the parameters for the stored procedure here
@p_cliente int = NULL,
@p_locacion int = NULL,
@p_tipo_acceso varchar(1) = NULL,
@p_usuario_control int = NULL,
@p_contratista int = NULL,
@p_empleado int = NULL,
@p_vehiculo int = NULL,
@p_autorizante int = NULL,
@p_detalle_control text = NULL,
@p_excepcion tinyint = 0,
@p_estado_autorizacion varchar(1) = NULL,
@p_vigencia_excepcion datetime = NULL,
@p_autoriza_rechaza datetime = NULL,
@p_whitelist_id_padron int = NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
insert into led_control_ingreso
(tipo_acceso, horario, usuario_control, cliente, contratista, empleado, vehiculo, autorizante, detalle_control,
excepcion, locacion, estado_autorizacion, vigencia_excepcion, autoriza_rechaza, whitelist_id_padron)
values
(@p_tipo_acceso, GETDATE(), @p_usuario_control, @p_cliente, @p_contratista, @p_empleado, @p_vehiculo, @p_autorizante, @p_detalle_control,
@p_excepcion, @p_locacion, @p_estado_autorizacion, @p_vigencia_excepcion, @p_autoriza_rechaza, @p_whitelist_id_padron)
select @@IDENTITY AS control_id
END
/*
delete from led_control_ingreso where whitelist_id_padron = 27272983
select * from led_control_ingreso order by control_id desc
delete from led_control_ingreso where contratista is null and empleado is null and vehiculo is null and whitelist_id_padron is null
*/
GO
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Imperium_Control_Acceso_Insert
-- Add the parameters for the stored procedure here
@p_cliente int = NULL,
@p_locacion int = NULL,
@p_tipo_acceso varchar(1) = NULL,
@p_usuario_control int = NULL,
@p_contratista int = NULL,
@p_empleado int = NULL,
@p_vehiculo int = NULL,
@p_autorizante int = NULL,
@p_detalle_control text = NULL,
@p_excepcion tinyint = 0,
@p_estado_autorizacion varchar(1) = NULL,
@p_vigencia_excepcion datetime = NULL,
@p_autoriza_rechaza datetime = NULL,
@p_whitelist_id_padron int = NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
insert into led_control_ingreso
(tipo_acceso, horario, usuario_control, cliente, contratista, empleado, vehiculo, autorizante, detalle_control,
excepcion, locacion, estado_autorizacion, vigencia_excepcion, autoriza_rechaza, whitelist_id_padron)
values
(@p_tipo_acceso, GETDATE(), @p_usuario_control, @p_cliente, @p_contratista, @p_empleado, @p_vehiculo, @p_autorizante, @p_detalle_control,
@p_excepcion, @p_locacion, @p_estado_autorizacion, @p_vigencia_excepcion, @p_autoriza_rechaza, @p_whitelist_id_padron)
select @@IDENTITY AS control_id
END
/*
delete from led_control_ingreso where whitelist_id_padron = 27272983
select * from led_control_ingreso order by control_id desc
delete from led_control_ingreso where contratista is null and empleado is null and vehiculo is null and whitelist_id_padron is null
*/
GO
Depends On
1Used By
No items found