Skip to content

Commit 89f1f20

Browse files
committed
fix comment
1 parent 4814826 commit 89f1f20

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

receiver/sqlserverreceiver/queries.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ func getSQLServerIndexPhysicalStatsQuery(instanceName string) string {
13221322
// sys.dm_os_ring_buffers and sys.dm_os_sys_memory as observed by SQL Server.
13231323
const sqlServerCPUMemoryQuery string = `
13241324
SET DEADLOCK_PRIORITY -10;
1325-
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,5,8) BEGIN
1326-
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, Azure SQL Database or Azure SQL Managed Instance. This query is only supported on these editions.';
1325+
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,8) BEGIN
1326+
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, or Azure SQL Managed Instance. This query is only supported on these editions.';
13271327
RAISERROR (@ErrorMessage,11,1)
13281328
RETURN
13291329
END

receiver/sqlserverreceiver/testdata/cpuMemoryQueryWithInstanceName.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
SET DEADLOCK_PRIORITY -10;
3-
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,5,8) BEGIN
4-
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, Azure SQL Database or Azure SQL Managed Instance. This query is only supported on these editions.';
3+
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,8) BEGIN
4+
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, or Azure SQL Managed Instance. This query is only supported on these editions.';
55
RAISERROR (@ErrorMessage,11,1)
66
RETURN
77
END

receiver/sqlserverreceiver/testdata/cpuMemoryQueryWithoutInstanceName.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
SET DEADLOCK_PRIORITY -10;
3-
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,5,8) BEGIN
4-
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, Azure SQL Database or Azure SQL Managed Instance. This query is only supported on these editions.';
3+
IF SERVERPROPERTY('EngineEdition') NOT IN (2,3,4,8) BEGIN
4+
DECLARE @ErrorMessage AS nvarchar(500) = 'Connection string Server:'+ @@ServerName + ',Database:' + DB_NAME() +' is not a SQL Server Standard, Enterprise, Express, or Azure SQL Managed Instance. This query is only supported on these editions.';
55
RAISERROR (@ErrorMessage,11,1)
66
RETURN
77
END

0 commit comments

Comments
 (0)