-- Schema: C6Mart
-- Stored Procedure: UT_INSERT_ERROR


CREATE procedure [C6Mart].[UT_INSERT_ERROR]
	@codiceErrore as int, 
    @descrizioErrore as text,
    @dataTime as datetime,
	@localeId as int,
    @descrizionePackage as text,
    @nomePackage as varchar(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    INSERT INTO [dbo].[GLOBAL_ERROR]
           ([Cancel]
           ,[ErrorCode]
           ,[ErrorDescription]
           ,[EventHandlerStartTime]
           ,[LocaleID]
           ,[Propagate]
           ,[SourceDescription]
           ,[SourceID]
           ,[SourceName]
           ,[Time])
     VALUES
           (null
           ,@codiceErrore 
           ,@descrizioErrore
           ,@dataTime
           ,@localeId
           ,null
           ,@descrizionePackage
           ,null
           ,@nomePackage
           ,@dataTime)
END


