1400 v2
This commit is contained in:
parent
c72eecee1e
commit
e4706cbd20
@ -22,7 +22,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Development' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Development' ">
|
||||||
<OutputPath>bin\</OutputPath>
|
<OutputPath>bin\</OutputPath>
|
||||||
<DeploymentServerName>localhost:63192</DeploymentServerName>
|
<DeploymentServerName>localhost</DeploymentServerName>
|
||||||
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
<DeploymentServerEdition>Developer</DeploymentServerEdition>
|
||||||
<DeploymentServerVersion>Version_11_0</DeploymentServerVersion>
|
<DeploymentServerVersion>Version_11_0</DeploymentServerVersion>
|
||||||
<DeploymentServerDatabase>AdventureWorks</DeploymentServerDatabase>
|
<DeploymentServerDatabase>AdventureWorks</DeploymentServerDatabase>
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
<Folder Include="dbo\" />
|
<Folder Include="dbo\" />
|
||||||
<Folder Include="dbo\Tables\" />
|
<Folder Include="dbo\Tables\" />
|
||||||
<Folder Include="dbo\Views\" />
|
<Folder Include="dbo\Views\" />
|
||||||
|
<Folder Include="dbo\Stored Procedures\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Build Include="dbo\Tables\ModelConfiguration.sql" />
|
<Build Include="dbo\Tables\ModelConfiguration.sql" />
|
||||||
@ -69,6 +70,7 @@
|
|||||||
<Build Include="dbo\Tables\ProcessingLog.sql" />
|
<Build Include="dbo\Tables\ProcessingLog.sql" />
|
||||||
<Build Include="dbo\Tables\TableConfiguration.sql" />
|
<Build Include="dbo\Tables\TableConfiguration.sql" />
|
||||||
<Build Include="dbo\Views\vPartitioningConfiguration.sql" />
|
<Build Include="dbo\Views\vPartitioningConfiguration.sql" />
|
||||||
|
<Build Include="dbo\Stored Procedures\usp_LastProcessingLogs.sql" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PostDeploy Include="Script.PostDeployment1.sql" />
|
<PostDeploy Include="Script.PostDeployment1.sql" />
|
||||||
|
@ -34,7 +34,14 @@ VALUES(
|
|||||||
,0 --[MaxDateIsNow]
|
,0 --[MaxDateIsNow]
|
||||||
,'2012-12-01' --[MaxDate]
|
,'2012-12-01' --[MaxDate]
|
||||||
,1 --[IntegerDateKey]
|
,1 --[IntegerDateKey]
|
||||||
,'SELECT * FROM [dbo].[FactInternetSales] WHERE OrderDateKey >= {0} AND OrderDateKey < {1} ORDER BY OrderDateKey' --[TemplateSourceQuery]
|
,
|
||||||
|
'let
|
||||||
|
Source = #"AdventureWorks",
|
||||||
|
dbo_FactInternetSales = Source{[Schema="dbo",Item="FactInternetSales"]}[Data],
|
||||||
|
#"Filtered Rows" = Table.SelectRows(dbo_FactInternetSales, each [OrderDateKey] >= {0} and [OrderDateKey] < {1}),
|
||||||
|
#"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"OrderDateKey", Order.Ascending}})
|
||||||
|
in
|
||||||
|
#"Sorted Rows"' --[TemplateSourceQuery]
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
2 --[PartitioningConfigurationID]
|
2 --[PartitioningConfigurationID]
|
||||||
@ -44,6 +51,13 @@ VALUES(
|
|||||||
,1 --[NumberOfPartitionsForIncrementalProcess]
|
,1 --[NumberOfPartitionsForIncrementalProcess]
|
||||||
,0 --[MaxDateIsNow]
|
,0 --[MaxDateIsNow]
|
||||||
,'2012-12-01' --[MaxDate]
|
,'2012-12-01' --[MaxDate]
|
||||||
,1 --[IntegerDateKey]
|
,0 --[IntegerDateKey]
|
||||||
,'SELECT * FROM [dbo].[FactResellerSales] WHERE OrderDateKey >= {0} AND OrderDateKey < {1} ORDER BY OrderDateKey' --[TemplateSourceQuery]
|
,
|
||||||
|
'let
|
||||||
|
Source = #"AdventureWorks",
|
||||||
|
dbo_FactResellerSales = Source{[Schema="dbo",Item="FactResellerSales"]}[Data],
|
||||||
|
#"Filtered Rows" = Table.SelectRows(dbo_FactResellerSales, each [OrderDate] >= {0} and [OrderDate] < {1}),
|
||||||
|
#"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"OrderDate", Order.Ascending}})
|
||||||
|
in
|
||||||
|
#"Sorted Rows"' --[TemplateSourceQuery]
|
||||||
);
|
);
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
CREATE PROC [dbo].[usp_LastProcessingLogs] AS
|
||||||
|
SELECT [Message]
|
||||||
|
FROM [dbo].[ProcessingLog]
|
||||||
|
WHERE ExecutionID =
|
||||||
|
( SELECT MAX([ExecutionID]) FROM [dbo].[ProcessingLog]
|
||||||
|
WHERE [LogDateTime] = (SELECT MAX([LogDateTime]) FROM [dbo].[ProcessingLog])
|
||||||
|
)
|
||||||
|
ORDER BY [LogDateTime]
|
@ -159,10 +159,8 @@ namespace AsPartitionProcessing.SampleClient
|
|||||||
"let\n" +
|
"let\n" +
|
||||||
" Source = #\"AdventureWorks\",\n" +
|
" Source = #\"AdventureWorks\",\n" +
|
||||||
" dbo_FactInternetSales = Source{[Schema=\"dbo\",Item=\"FactInternetSales\"]}[Data],\n" +
|
" dbo_FactInternetSales = Source{[Schema=\"dbo\",Item=\"FactInternetSales\"]}[Data],\n" +
|
||||||
" #\"Filtered Rows\" = Table.SelectRows(" +
|
" #\"Filtered Rows\" = Table.SelectRows(dbo_FactInternetSales, each [OrderDateKey] >= {0} and [OrderDateKey] < {1}),\n" +
|
||||||
"dbo_FactInternetSales, each [OrderDateKey] >= {0} and [OrderDateKey] < {1}),\n" +
|
" #\"Sorted Rows\" = Table.Sort(#\"Filtered Rows\",{{\"OrderDateKey\", Order.Ascending}})\n" +
|
||||||
" #\"Sorted Rows\" = Table.Sort(" +
|
|
||||||
"#\"Filtered Rows\",{{\"OrderDateKey\", Order.Ascending}})\n" +
|
|
||||||
"in\n" +
|
"in\n" +
|
||||||
" #\"Sorted Rows\"\n"
|
" #\"Sorted Rows\"\n"
|
||||||
)
|
)
|
||||||
@ -186,10 +184,8 @@ namespace AsPartitionProcessing.SampleClient
|
|||||||
"let\n" +
|
"let\n" +
|
||||||
" Source = #\"AdventureWorks\",\n" +
|
" Source = #\"AdventureWorks\",\n" +
|
||||||
" dbo_FactResellerSales = Source{[Schema=\"dbo\",Item=\"FactResellerSales\"]}[Data],\n" +
|
" dbo_FactResellerSales = Source{[Schema=\"dbo\",Item=\"FactResellerSales\"]}[Data],\n" +
|
||||||
" #\"Filtered Rows\" = Table.SelectRows(" +
|
" #\"Filtered Rows\" = Table.SelectRows(dbo_FactResellerSales, each [OrderDate] >= {0} and [OrderDate] < {1}),\n" +
|
||||||
"dbo_FactResellerSales, each [OrderDate] >= {0} and [OrderDate] < {1}),\n" +
|
" #\"Sorted Rows\" = Table.Sort(#\"Filtered Rows\",{{\"OrderDate\", Order.Ascending}})\n" +
|
||||||
" #\"Sorted Rows\" = Table.Sort(" +
|
|
||||||
"#\"Filtered Rows\",{{\"OrderDate\", Order.Ascending}})\n" +
|
|
||||||
"in\n" +
|
"in\n" +
|
||||||
" #\"Sorted Rows\"\n"
|
" #\"Sorted Rows\"\n"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user