Analysis-Services/AsPartitionProcessing/AsPartitionProcessing.ConfigurationLogging/dbo/Views/vPartitioningConfiguration.sql
Christian Wade 46a066fa13 1400 v3
2017-04-18 18:48:52 -07:00

34 lines
1015 B
Transact-SQL

CREATE VIEW [dbo].[vPartitioningConfiguration]
AS
SELECT m.[ModelConfigurationID]
,m.[AnalysisServicesServer]
,m.[AnalysisServicesDatabase]
,m.[InitialSetUp]
,m.[IncrementalOnline]
,m.[IntegratedAuth]
,m.[MaxParallelism]
,m.[CommitTimeout]
,m.[RetryAttempts]
,m.[RetryWaitTimeSeconds]
,t.[TableConfigurationID]
,t.[AnalysisServicesTable]
,t.[DoNotProcess]
,CASE
WHEN p.[TableConfigurationID] IS NULL THEN 0
ELSE 1
END [Partitioned]
,p.[PartitioningConfigurationID]
,p.[Granularity]
,p.[NumberOfPartitionsFull]
,p.[NumberOfPartitionsForIncrementalProcess]
,p.[MaxDateIsNow]
,p.[MaxDate]
,p.[IntegerDateKey]
,p.[TemplateSourceQuery]
FROM [dbo].[ModelConfiguration] m
INNER JOIN [dbo].[TableConfiguration] t ON m.[ModelConfigurationID] = t.[ModelConfigurationID]
LEFT JOIN [dbo].[PartitioningConfiguration] p ON t.[TableConfigurationID] = p.[TableConfigurationID]