Skip to content

Commit 77e3a01

Browse files
authored
Merge pull request #3136 from chrismayivce/dev
sp_BlitzQueryStore - Allow @DatabaseName to be used to Azure MI
2 parents 1eefb96 + 844567f commit 77e3a01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sp_BlitzQueryStore.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ IF ( SELECT COUNT(*)
205205
/*Making sure your databases are using QDS.*/
206206
RAISERROR('Checking database validity', 0, 1) WITH NOWAIT;
207207

208-
IF (@is_azure_db = 1)
208+
IF (@is_azure_db = 1 AND SERVERPROPERTY ('ENGINEEDITION') <> 8)
209209
SET @DatabaseName = DB_NAME();
210210
ELSE
211211
BEGIN
212212

213-
/*If we're on Azure we don't need to check all this @DatabaseName stuff...*/
213+
/*If we're on Azure SQL DB we don't need to check all this @DatabaseName stuff...*/
214214

215215
SET @DatabaseName = LTRIM(RTRIM(@DatabaseName));
216216

0 commit comments

Comments
 (0)