Project

General

Profile

Bug #1203 » SyncParameterReportBudget.sql

Tri Rizqiaty, 06/29/2022 10:00 AM

 
1
??/*
2

3
Run this script on:
4

5

6

7
remote.minovais.com,1442.MinovaES_Bank_Kalteng_Dev    -  This database will be modified
8

9

10

11
to synchronize it with:
12

13

14

15
45.251.75.66.MinovaES_Demo
16

17

18

19
You are recommended to back up your database before running this script
20

21

22

23
Script created by SQL Data Compare version 11.1.3 from Red Gate Software Ltd at 20/06/2022 14.52.26
24

25

26

27
*/
28

29
		
30

31
SET NUMERIC_ROUNDABORT OFF
32

33
GO
34

35
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS, NOCOUNT ON
36

37
GO
38

39
SET DATEFORMAT YMD
40

41
GO
42

43
SET XACT_ABORT ON
44

45
GO
46

47
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
48

49
GO
50

51
BEGIN TRANSACTION
52

53
-- Pointer used for text / image updates. This might not be needed, but is declared here just in case
54

55
DECLARE @pv binary(16)
56

57

58

59
PRINT(N'Delete rows from [dbo].[PCMEPRPTSELECTION]')
60

61
DELETE FROM [dbo].[PCMEPRPTSELECTION] WHERE [ReportID]='1510002' AND [FieldName]='Tahun'
62

63
PRINT(N'Operation applied to 1 rows out of 33')
64

65

66

67
PRINT(N'Add rows to [dbo].[PCMEPRPTCATALOG]')
68

69
INSERT INTO [dbo].[PCMEPRPTCATALOG] ([ReportID], [MenuID], [StoreName], [RdlName], [ReportSourceType], [HeaderTitle], [FooterTitle], [ReportLayout], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate]) VALUES ('1510003', 'BUR04', '', 'PRPTBUACTCOM', '1', 'Budget & Actual Comparison', 'Budget & Actual Comparison', 'R001', 'Budget & Actual Comparison', 'minovais', '20160606095829', 'minovais', '20160606095829')
70

71
PRINT(N'Operation applied to 1 rows out of 18')
72

73

74

75
PRINT(N'Add rows to [dbo].[PCMEPRPTSELECTION]')
76

77
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510002', 'Period', 1, '1', 1, 'Period', '1', '0', 'PERIOD', '', 'monthpicker', '', '', '', '', '', '1', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
78

79
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'CostCenter', 1, '1', 1, 'CostCenter', '0', '0', 'CC', '00000043', NULL, '3', 'PHROM0001', NULL, '', NULL, '1', NULL, NULL, NULL, NULL, NULL, 'CG-CG-CC', 'ObjectClass[=]CC', NULL, NULL)
80

81
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'key1', 4, '1', 1, 'Time', '1', '1', 'TIME', '', NULL, '', '', '', '1 = 1510004', '', '1', '', 'minovais', '2.01606E+13', 'minovais', '2.01606E+13', NULL, NULL, NULL, NULL)
82

83
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'key2', 4, '1', 1, 'Time', '1', '1', 'TIME', '', NULL, '', '', '', '', '', '1', '', 'minovais', '2.01606E+13', 'minovais', '2.01606E+13', NULL, NULL, NULL, NULL)
84

85
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'Period', 2, '1', 1, 'Period', '1', '0', 'PERIOD', '2017', '', '', '', '', NULL, '2016=2016||2017=2017||2018=2018', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
86

87
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'Scenario', 4, '1', 1, 'Scenario', '1', '0', 'SCENARIO', '0000000001', NULL, '0', 'PHRBUSCENARIO', '', '', '', '1', '', 'minovais', '2.01606E+13', 'minovais', '2.01606E+13', NULL, NULL, NULL, NULL)
88

89
INSERT INTO [dbo].[PCMEPRPTSELECTION] ([ReportID], [FieldName], [Sequence], [SelectionType], [ColumnNo], [Description], [Required], [IsHidden], [FieldRef], [DefaultValue], [FormatRef], [SearchType], [TableRef], [TriggerCombo], [SelectFunction], [FixedValue], [IsActive], [Notes], [CreateBy], [CreateDate], [ChangeBy], [ChangeDate], [SearchFunction], [ParamCombo], [ReadOnly], [LookupFunction]) VALUES ('1510003', 'Year', 3, '1', 1, 'Year', '1', '0', 'YEAR', '2018', NULL, '', '', '', '', '2016=2016||2017=2017||2018=2018', '1', '', 'minovais', '2.01606E+13', 'minovais', '2.01606E+13', NULL, NULL, NULL, NULL)
90

91
PRINT(N'Operation applied to 7 rows out of 459')
92

93
COMMIT TRANSACTION
94

95
GO
96

97

(6-6/21)