You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.6 KiB
32 lines
1.6 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_displayoaerror] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[dt_displayoaerror]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_displayoaerror] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
CREATE PROCEDURE [dbo].[dt_displayoaerror]
|
|
@iObject int,
|
|
@iresult int
|
|
as
|
|
|
|
set nocount on
|
|
|
|
declare @vchOutput varchar(255)
|
|
declare @hr int
|
|
declare @vchSource varchar(255)
|
|
declare @vchDescription varchar(255)
|
|
|
|
exec @hr = master.dbo.sp_OAGetErrorInfo @iObject, @vchSource OUT, @vchDescription OUT
|
|
|
|
select @vchOutput = @vchSource + ': ' + @vchDescription
|
|
raiserror (@vchOutput,16,-1)
|
|
|
|
return
|
|
|
|
|
|
GO
|