Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
13| Name | Data Type | Length | Description |
|---|---|---|---|
| @dni | varchar | 10 | |
| @sexo | char | 1 | |
| @codigo_http | varchar | -1 | |
| @mensaje_http | varchar | -1 | |
| @data_codigo | varchar | -1 | |
| @data_mensaje | varchar | -1 | |
| @transactionControlNumber | varchar | -1 | |
| @typeOfTransaction | varchar | -1 | |
| @dateOfTransaction | varchar | -1 | |
| @error_code | varchar | -1 | |
| @error_description | varchar | -1 | |
| @error_name | varchar | -1 | |
| @person | varchar | -1 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
select * from [RENAPER_FACE_INFO] order by id desc
where dni = '11280697'
*/
CREATE OR ALTER PROCEDURE dbo.RENAPER_FACE_INSERTAR
@dni varchar(10),
@sexo char(1),
@codigo_http varchar(max) = NULL,
@mensaje_http varchar(max) = NULL,
@data_codigo varchar(max) = NULL,
@data_mensaje varchar(max) = NULL,
@transactionControlNumber varchar(max) = NULL,
@typeOfTransaction varchar(max) = NULL,
@dateOfTransaction varchar(max) = NULL,
@error_code varchar(max) = NULL,
@error_description varchar(max) = NULL,
@error_name varchar(max) = NULL,
@person varchar(max) = NULL
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO RENAPER_FACE_INFO
(dni,
sexo,
codigo_http,
mensaje_http,
data_codigo,
data_mensaje ,
transactionControlNumber ,
typeOfTransaction ,
dateOfTransaction ,
error_code,
error_description ,
error_name ,
person ,
created)
VALUES
(@dni,
@sexo,
@codigo_http,
@mensaje_http,
@data_codigo,
@data_mensaje ,
@transactionControlNumber ,
@typeOfTransaction ,
@dateOfTransaction ,
@error_code,
@error_description ,
@error_name ,
@person ,
GETDATE())
declare @id int = SCOPE_IDENTITY()
SELECT @id AS id, @transactionControlNumber as transaccion
END
GO
GO
/*
select * from [RENAPER_FACE_INFO] order by id desc
where dni = '11280697'
*/
CREATE OR ALTER PROCEDURE dbo.RENAPER_FACE_INSERTAR
@dni varchar(10),
@sexo char(1),
@codigo_http varchar(max) = NULL,
@mensaje_http varchar(max) = NULL,
@data_codigo varchar(max) = NULL,
@data_mensaje varchar(max) = NULL,
@transactionControlNumber varchar(max) = NULL,
@typeOfTransaction varchar(max) = NULL,
@dateOfTransaction varchar(max) = NULL,
@error_code varchar(max) = NULL,
@error_description varchar(max) = NULL,
@error_name varchar(max) = NULL,
@person varchar(max) = NULL
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO RENAPER_FACE_INFO
(dni,
sexo,
codigo_http,
mensaje_http,
data_codigo,
data_mensaje ,
transactionControlNumber ,
typeOfTransaction ,
dateOfTransaction ,
error_code,
error_description ,
error_name ,
person ,
created)
VALUES
(@dni,
@sexo,
@codigo_http,
@mensaje_http,
@data_codigo,
@data_mensaje ,
@transactionControlNumber ,
@typeOfTransaction ,
@dateOfTransaction ,
@error_code,
@error_description ,
@error_name ,
@person ,
GETDATE())
declare @id int = SCOPE_IDENTITY()
SELECT @id AS id, @transactionControlNumber as transaccion
END
GO
Depends On
1Used By
No items found