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:
@@ -2664,9 +2664,12 @@ IF (@@Error = 0) PRINT 'ScalarFunction Creation: vefn_CheckXML Succeeded'
|
||||
ELSE PRINT 'ScalarFunction Creation: vefn_CheckXML Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [vefn_ChronologyReport] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[vefn_ChronologyReport]') AND OBJECTPROPERTY(id,N'IsTableFunction') = 1)
|
||||
DROP FUNCTION [vefn_ChronologyReport];
|
||||
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
|
||||
|
||||
/*
|
||||
@@ -2859,9 +2862,9 @@ and ca.contentid in (select icontentid from @tmpTable)
|
||||
return
|
||||
end
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'TableFunction Creation: vefn_ChronologyReport Succeeded'
|
||||
ELSE PRINT 'TableFunction Creation: vefn_ChronologyReport Error on Creation'
|
||||
-- Display the status of TableFunction creation
|
||||
IF (@@Error = 0) PRINT 'Function: vefn_ChronologyReport Succeeded'
|
||||
ELSE PRINT 'Function: vefn_ChronologyReport Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [vefn_FindExternalFromTransitions] ******/
|
||||
|
Reference in New Issue
Block a user