Skip to content

Commit 844567f

Browse files
committed
Allow @DatabaseName to be used to Azure MI
1 parent a3aa649 commit 844567f

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)