BEGIN Transaction
--Update version number
PRINT N'Insert version 8.0'
INSERT INTO [SchemaChangeLog]
([MajorReleaseNumber]
,[MinorReleaseNumber]
,[BuildReleaseNumber]
,[ScriptName]
,[ScriptID]
,[DateApplied]
,[Description])
VALUES('00','0000','0000','DatabaseUpgrade_8.0.sql','Upgrade8.0',SYSDATETIMEOFFSET(),NULL)
IF @@ERROR = 0
BEGIN
COMMIT
PRINT 'Success'
END
ELSE
BEGIN
ROLLBACK
PRINT 'Failure'
END
GO