Exit on SQL script failure
Added error handling to RunScript method Exit on SQL script failure Changed vefn_ChronologyReport Changed how check for prior existence of rofst
This commit is contained in:
@@ -2482,6 +2482,17 @@ IF (@@Error = 0) PRINT 'StoredProcedure [getContentAuditsChronologyByItemID] Suc
|
||||
ELSE PRINT 'StoredProcedure [getContentAuditsChronologyByItemID] Error on Creation'
|
||||
go
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[vefn_ChronologyReport]') AND OBJECTPROPERTY(id,N'IsTableFunction') = 1)
|
||||
DROP FUNCTION [vefn_ChronologyReport];
|
||||
/****** Object: UserDefinedFunction [dbo].[vefn_ChronologyReport] Script Date: 03/20/2012 17:50:44 ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
/*
|
||||
select * from vefn_chronologyreport(2) where type > 0 order by contentid,auditid
|
||||
*/
|
||||
/****** Object: UserDefinedFunction [dbo].[vefn_ChronologyReport] Script Date: 05/18/2011 11:20:48 ******/
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
@@ -2490,6 +2501,7 @@ go
|
||||
CREATE function [dbo].[vefn_ChronologyReport](@ProcItemID int)
|
||||
returns @Report table
|
||||
(
|
||||
src int,
|
||||
AuditID bigint,
|
||||
ContentID int,
|
||||
Number nvarchar(512),
|
||||
@@ -2668,12 +2680,10 @@ and ca.contentid in (select icontentid from @tmpTable)
|
||||
return
|
||||
end
|
||||
GO
|
||||
|
||||
-- Display the status of Trigger alter
|
||||
-- Display the status of TableFunction creation
|
||||
IF (@@Error = 0) PRINT 'Function: vefn_ChronologyReport Succeeded'
|
||||
ELSE PRINT 'Function: vefn_ChronologyReport Error on Creation'
|
||||
|
||||
go
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getAnnotationAuditsChronologyByItemID] ******/
|
||||
/*
|
||||
|
Reference in New Issue
Block a user