dbo.CHEQUES_insertar

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

9
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

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.CHEQUES_insertar
--@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)
AS

BEGIN
BEGIN TRY

    SET NOCOUNT ON;

 /* insertar consulta */
 BEGIN
  INSERT INTO ChequesBCRA
   (cuit_firmante, nro_cheque, fecha_rechazo, importe, id_causa, fecha_levantamiento, Cuit_relacionado, fecha_pago, nombre_file, created,created_by)
  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(), 0)
 END

END TRY
BEGIN CATCH
 --SELECT @out_error_number=ERROR_NUMBER()
END CATCH
END

GO

Depends On

1

Used By

No items found