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.
39 lines
2.5 KiB
39 lines
2.5 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[set_refresh_txp_kpi_data_status] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[set_refresh_txp_kpi_data_status]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[set_refresh_txp_kpi_data_status] Script Date: 02.12.2016 09:08:55 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
-- =============================================
|
|
-- Author: Ruedi Schwarzenbach
|
|
-- Create date: 26.02.2016
|
|
-- Description: selbstredend
|
|
-- Design Documentation: "P:\SER\IT\IT-Betrieb\50_Produkte\TicketXpert\Changes
|
|
-- \AT_00044 - Monatlicher Datentransfer ins ITSM\Analyse und Design.docx"
|
|
-- =============================================
|
|
CREATE PROCEDURE [dbo].[set_refresh_txp_kpi_data_status]
|
|
@status VARCHAR(MAX)
|
|
AS
|
|
BEGIN
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
DECLARE @preconditions_ok INT = 0
|
|
EXEC dbo.check_txp_kpi_data_refresh_preconditions @result = @preconditions_ok OUTPUT
|
|
|
|
|
|
IF @preconditions_ok <> 0
|
|
BEGIN
|
|
UPDATE TXP.dbo._tkb_refresh_kpi_data_time SET status_itsm = @status WHERE zeitpunkt = CAST( GETDATE() AS DATE)
|
|
END
|
|
END
|
|
|
|
|
|
GO
|