Azure SQL Database
An Azure relational database service.
6,326 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
How can I check whether a Azure database is part of Azure managed instance or standalone database?
Thanks
SS
Please see T-SQL example:
IF( SERVERPROPERTY('EngineEdition') = 8 )
BEGIN
PRINT 'This is an Azure SQL Managed Instance.';
END
ELSE
BEGIN
PRINT 'This is NOT an Azure SQL Managed Instance.';
END
Value 5 (SQL Database) belongs to Azure SQL. See all possible Engine Editions here.