Skip to content

Commit

Permalink
Fixed engine edition in few additional files
Browse files Browse the repository at this point in the history
  • Loading branch information
JocaPC committed Jul 20, 2018
1 parent 4cdaaad commit 1b16916
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Azure/alignment.sql
Expand Up @@ -73,7 +73,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down
2 changes: 1 addition & 1 deletion Azure/dictionaries.sql
Expand Up @@ -85,7 +85,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down
2 changes: 1 addition & 1 deletion Azure/fragmentation.sql
Expand Up @@ -67,7 +67,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down
2 changes: 1 addition & 1 deletion Azure/row_groups.sql
Expand Up @@ -73,7 +73,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down
2 changes: 1 addition & 1 deletion Azure/row_groups_details.sql
Expand Up @@ -58,7 +58,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down
2 changes: 1 addition & 1 deletion Azure/suggested_tables.sql
Expand Up @@ -85,7 +85,7 @@ declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion')
declare @errorMessage nvarchar(512);

-- Ensure that we are running Azure SQLDatabase
if SERVERPROPERTY('EngineEdition') <> 5
if SERVERPROPERTY('EngineEdition') NOT IN (5,8)
begin
set @errorMessage = (N'Your are not running this script on Azure SQLDatabase: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
Expand Down

0 comments on commit 1b16916

Please sign in to comment.