An Azure SQL database requires an Azure SQL agent.
An Azure Managed Instance require as SQL Server agent.
How can you differentiate between the two?
SERVERPROPERTY
for Platform DetectionThe SERVERPROPERTY
function is useful for identifying the platform, edition, and engine edition of the connected SQL Server instance. Here’s a query that will help you determine the platform:
SELECT
SERVERPROPERTY('ProductVersion') AS ProductVersion,
SERVERPROPERTY('Edition') AS Edition,
SERVERPROPERTY('EngineEdition') AS EngineEdition,
SERVERPROPERTY('MachineName') AS MachineName;
An explanation of the results are available from Microsoft's knowledgebase here where it describes the values of the SERVERPROPERTY
SQL Server Agent is only available in Azure SQL Managed Instance (not in Azure SQL Database). If you query system views related to SQL Server Agent and they return results, you’re likely using Managed Instance.
SELECT *
FROM msdb.dbo.sysschedules;
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center