Analysis-Services/AsPartitionProcessing/SampleConfiguration.sql

50 lines
2.2 KiB
MySQL
Raw Normal View History

2016-12-02 11:25:57 +08:00
INSERT INTO [dbo].[ModelConfiguration]
VALUES(
1 --[ModelConfigurationID]
,'localhost' --[AnalysisServicesServer]
,'AdventureWorks' --[AnalysisServicesDatabase]
,1 --[InitialSetUp]
,1 --[IncrementalOnline]
,1 --[IntegratedAuth]
2016-12-29 08:58:53 +08:00
,-1 --[MaxParallelism]
2016-12-20 16:34:25 +08:00
,-1 --[CommitTimeout]
2016-12-02 11:25:57 +08:00
);
INSERT INTO [dbo].[TableConfiguration]
VALUES(
1 --[TableConfigurationID]
,1 --[ModelConfigurationID]
,'Internet Sales' --[AnalysisServicesTable]
2016-12-04 09:06:28 +08:00
,0 --[DoNotProcess]
2016-12-02 11:25:57 +08:00
),
(
2 --[TableConfigurationID]
,1 --[ModelConfigurationID]
,'Reseller Sales' --[AnalysisServicesTable]
2016-12-04 09:06:28 +08:00
,0 --[DoNotProcess]
2016-12-02 11:25:57 +08:00
);
INSERT INTO [dbo].[PartitioningConfiguration]
VALUES(
1 --[PartitioningConfigurationID]
,1 --[TableConfigurationID]
,1 --[Granularity] 1=Monthly
,12 --[NumberOfPartitionsFull]
,3 --[NumberOfPartitionsForIncrementalProcess]
,0 --[MaxDateIsNow]
2016-12-02 11:25:57 +08:00
,'2012-12-01' --[MaxDate]
,1 --[IntegerDateKey]
,'SELECT * FROM [dbo].[FactInternetSales] WHERE OrderDateKey >= {0} AND OrderDateKey < {1} ORDER BY OrderDateKey' --[TemplateSourceQuery]
2016-12-02 11:25:57 +08:00
),
(
2 --[PartitioningConfigurationID]
,2 --[TableConfigurationID]
,2 --[Granularity] 2=Yearly
,3 --[NumberOfPartitionsFull]
,1 --[NumberOfPartitionsForIncrementalProcess]
,0 --[MaxDateIsNow]
2016-12-02 11:25:57 +08:00
,'2012-12-01' --[MaxDate]
,1 --[IntegerDateKey]
,'SELECT * FROM [dbo].[FactResellerSales] WHERE OrderDateKey >= {0} AND OrderDateKey < {1} ORDER BY OrderDateKey' --[TemplateSourceQuery]
2016-12-02 11:25:57 +08:00
);