Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Renaming adhocanalytics to adhocreporting
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoOlubeko committed Nov 13, 2017
1 parent 9f2b40b commit d921e64
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Helper script for deploying and using adhoc analytics
# Helper script for deploying and using adhoc reporting

$DemoScenario = 2
<# Select the demo scenario that will be run. It is recommended you run the scenarios below in order.
Expand Down Expand Up @@ -40,7 +40,7 @@ if ($DemoScenario -eq 1)
### Deploy the Ad-hoc Analytics database used with Elastic Query to the catalog server
if ($DemoScenario -eq 2)
{
& $PSScriptRoot\Deploy-AdhocAnalyticsDB.ps1 `
& $PSScriptRoot\Deploy-AdhocReportingDB.ps1 `
-WtpResourceGroupName $wtpUser.ResourceGroupName `
-WtpUser $wtpUser.Name
exit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if(!$resourceGroup)

$catalogServerName = $config.CatalogServerNameStem + $WtpUser
$fullyQualifiedCatalogServerName = $catalogServerName + ".database.windows.net"
$AdhocAnalyticsDatabaseName = $config.AdhocAnalyticsDatabaseName
$AdhocAnalyticsDatabaseName = $config.AdhocReportingDatabaseName

# Check if Ad-hoc Analytics database already exists
$adHocAnalyticsDB = Get-AzureRmSqlDatabase `
Expand All @@ -54,18 +54,18 @@ if($adHocAnalyticsDB)

Write-output "Deploying database '$AdhocAnalyticsDatabaseName' on server '$catalogServerName'..."

# Deploy adhoc analytics database
# Deploy adhoc reporting database
New-AzureRmSqlDatabase `
-ResourceGroupName $WtpResourceGroupName `
-ServerName $catalogServerName `
-DatabaseName $AdhocAnalyticsDatabaseName `
-RequestedServiceObjectiveName $config.AdhocAnalyticsDatabaseServiceObjective `
-RequestedServiceObjectiveName $config.AdhocReportingDatabaseServiceObjective `
> $null

# if schema deployment is requested...
if($DeploySchema.IsPresent)
{
$commandText = [IO.File]::ReadAllText("$PSScriptRoot\Initialize-AdhocAnalyticsDb.sql")
$commandText = [IO.File]::ReadAllText("$PSScriptRoot\Initialize-AdhocReportingDB.sql")

Write-output "Initializing database schema..."

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- ********************************************************************************************
-- SETUP Adhoc analytics database with external data source and tables needed for Elastic Query
-- SETUP Adhoc reporting database with external data source and tables needed for Elastic Query
-- *********************************************************************************************

-- Create encryption key that will encrypt database logins
Expand Down Expand Up @@ -189,7 +189,7 @@ WHEN NOT MATCHED BY TARGET THEN
GO


--- Verify that the external data source and tables exist in the adhoc analytics database
--- Verify that the external data source and tables exist in the adhoc reporting database
select * from sys.external_data_sources;
select * from sys.external_tables;
GO
Expand Down
4 changes: 2 additions & 2 deletions Learning Modules/WtpConfig.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function Get-Configuration
TenantAnalyticsDatabaseName = "tenantanalytics"
TenantAnalyticsCSDatabaseName = "tenantanalytics-cs"
TenantAnalyticsDWDatabaseName = "tenantanalytics-dw"
AdhocAnalyticsDatabaseName = "adhocanalytics"
AdhocAnalyticsDatabaseServiceObjective = "S0"
AdhocReportingDatabaseName = "adhocreporting"
AdhocReportingDatabaseServiceObjective = "S0"
SearchDatabaseName = "tenantsearch"
SearchDatabaseServiceObjective = "S0"
StorageKeyType = "SharedAccessKey"
Expand Down

0 comments on commit d921e64

Please sign in to comment.