Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
10| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_cuit_firmante | varchar | 11 | |
| @p_nro_cheque | int | 4 | |
| @p_fecha_rechazo | smalldatetime | 4 | |
| @p_importe | money | 8 | |
| @p_id_causa | smallint | 2 | |
| @p_fecha_levantamiento | smalldatetime | 4 | |
| @p_cuit_relacionado | varchar | 11 | |
| @p_fecha_pago | smalldatetime | 4 | |
| @p_nombre_file | varchar | 200 | |
| @p_nro_linea | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.cheques_insertar_altas
--@out_error_number INT = 0 OUTPUT,
@p_cuit_firmante varchar(11),
@p_nro_cheque int,
@p_fecha_rechazo smalldatetime,
@p_importe money,
@p_id_causa smallint,
@p_fecha_levantamiento smalldatetime,
@p_cuit_relacionado varchar(11),
@p_fecha_pago smalldatetime,
@p_nombre_file varchar(200),
@p_nro_linea int
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
INSERT INTO chequesBCRA_procesamiento_altas
(cuit_firmante, nro_cheque, fecha_rechazo, importe, id_causa, fecha_levantamiento, cuit_relacionado, fecha_pago, nombre_file, created, nro_linea)
VALUES
(@p_cuit_firmante, @p_nro_cheque, @p_fecha_rechazo, @p_importe, @p_id_causa, @p_fecha_levantamiento, @p_cuit_relacionado, @p_fecha_pago, @p_nombre_file, getdate(), @p_nro_linea)
SELECT 'ok' as ok
END TRY
BEGIN CATCH
SELECT ERROR_MESSAGE() as error
END CATCH
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.cheques_insertar_altas
--@out_error_number INT = 0 OUTPUT,
@p_cuit_firmante varchar(11),
@p_nro_cheque int,
@p_fecha_rechazo smalldatetime,
@p_importe money,
@p_id_causa smallint,
@p_fecha_levantamiento smalldatetime,
@p_cuit_relacionado varchar(11),
@p_fecha_pago smalldatetime,
@p_nombre_file varchar(200),
@p_nro_linea int
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
INSERT INTO chequesBCRA_procesamiento_altas
(cuit_firmante, nro_cheque, fecha_rechazo, importe, id_causa, fecha_levantamiento, cuit_relacionado, fecha_pago, nombre_file, created, nro_linea)
VALUES
(@p_cuit_firmante, @p_nro_cheque, @p_fecha_rechazo, @p_importe, @p_id_causa, @p_fecha_levantamiento, @p_cuit_relacionado, @p_fecha_pago, @p_nombre_file, getdate(), @p_nro_linea)
SELECT 'ok' as ok
END TRY
BEGIN CATCH
SELECT ERROR_MESSAGE() as error
END CATCH
END
GO
Depends On
1Used By
No items found