Features comparison: Azure SQL Database and Azure SQL Managed Instance
APPLIES TO: Azure SQL Database Azure SQL Managed Instance
Azure SQL Database and SQL Managed Instance share a common code base with the latest stable version of SQL Server. Most of the standard SQL language, query processing, and database management features are identical. The features that are common between SQL Server and SQL Database or SQL Managed Instance are:
- Language features - Control of flow language keywords, Cursors, Data types, DML statements, Predicates, Sequence numbers, Stored procedures, and Variables.
- Database features - Automatic tuning (plan forcing), Change tracking, Database collation, Contained databases, Contained users, Data compression, Database configuration settings, Online index operations, Partitioning, and Temporal tables (see getting started guide).
- Security features - Application roles, Dynamic data masking (see getting started guide), Row Level Security, and Threat detection - see getting started guides for SQL Database and SQL Managed Instance.
- Multi-model capabilities - Graph processing, JSON data (see getting started guide), OPENXML, Spatial, OPENJSON, and XML indexes.
Azure manages your databases and guarantees their high-availability. Some features that might affect high-availability or can't be used in PaaS world have limited functionalities in SQL Database and SQL Managed Instance. These features are described in the tables below.
If you need more details about the differences, you can find them in the separate pages:
Features of SQL Database and SQL Managed Instance
The following table lists the major features of SQL Server and provides information about whether the feature is partially or fully supported in Azure SQL Database and Azure SQL Managed Instance, with a link to more information about the feature.
|Feature||Azure SQL Database||Azure SQL Managed Instance|
|Always Encrypted||Yes - see Cert store and Key vault||Yes - see Cert store and Key vault|
|Always On Availability Groups||99.99-99.995% availability is guaranteed for every database. Disaster recovery is discussed in Overview of business continuity with Azure SQL Database||99.99.% availability is guaranteed for every database and can't be managed by user. Disaster recovery is discussed in Overview of business continuity with Azure SQL Database. Use Auto-failover groups to configure a secondary SQL Managed Instance in another region. SQL Server instances and SQL Database can't be used as secondaries for SQL Managed Instance.|
|Attach a database||No||No|
|Auditing||Yes||Yes, with some differences|
|Azure Active Directory (Azure AD) authentication||Yes. Azure AD users only.||Yes. Including server-level Azure AD logins.|
|BACKUP command||No, only system-initiated automatic backups - see Automated backups||Yes, user initiated copy-only backups to Azure Blob storage (automatic system backups can't be initiated by user) - see Backup differences|
|Built-in functions||Most - see individual functions||Yes - see Stored procedures, functions, triggers differences|
|BULK INSERT statement||Yes, but just from Azure Blob storage as a source.||Yes, but just from Azure Blob Storage as a source - see differences.|
|Certificates and asymmetric keys||Yes, without access to file system for
||Yes, without access to file system for
|Change data capture - CDC||No||Yes|
|Collation - server/instance||No, default server collation
||Yes, can be set when the instance is created and can't be updated later.|
|Columnstore indexes||Yes - Premium tier, Standard tier - S3 and above, General Purpose tier, Business Critical, and HyperScale tiers||Yes|
|Common language runtime - CLR||No||Yes, but without access to file system in
|Credentials||Yes, but only database scoped credentials.||Yes, but only Azure Key Vault and
|Cross-database/three-part name queries||No - see Elastic queries||Yes, plus Elastic queries|
|Cross-database transactions||No||Yes, within the instance. See Linked server differences for cross-instance queries.|
|Database mail - DbMail||No||Yes|
|DBCC statements||Most - see individual statements||Yes - see DBCC differences|
|DDL statements||Most - see individual statements||Yes - see T-SQL differences|
|DDL triggers||Database only||Yes|
|Distributed partition views||No||Yes|
|Distributed transactions - MS DTC||No - see Elastic transactions||No - see Linked server differences. Try to consolidate databases from several distributed SQL Server instances into one SQL Managed Instance during migration.|
|DML triggers||Most - see individual statements||Yes|
|DMVs||Most - see individual DMVs||Yes - see T-SQL differences|
|Elastic query (in public preview)||Yes, with required RDBMS type.||No|
|Event notifications||No - see Alerts||No|
|Extended events (XEvent)||Some - see Extended events in SQL Database||Yes - see Extended events differences|
|Extended stored procedures||No||No|
|Files and file groups||Primary file group only||Yes. File paths are automatically assigned and the file location can't be specified in
|Full-text search (FTS)||Yes, but third-party word breakers are not supported||Yes, but third-party word breakers are not supported|
|Functions||Most - see individual functions||Yes - see Stored procedures, functions, triggers differences|
|In-memory optimization||Yes in Premium and Business Critical service tiers. Limited support for non-persistent In-Memory OLTP objects such as memory-optimized table variables in Hyperscale service tier.||Yes in Business Critical service tier|
|Language elements||Most - see individual elements||Yes - see T-SQL differences|
|Linked servers||No - see Elastic query||Yes. Only to SQL Server and SQL Database without distributed transactions.|
|Linked servers that read from files (CSV, Excel)||No. Use BULK INSERT or OPENROWSET as an alternative for CSV format.||No. Use BULK INSERT or OPENROWSET as an alternative for CSV format. Track these requests on SQL Managed Instance feedback item|
|Log shipping||High availability is included with every database. Disaster recovery is discussed in Overview of business continuity.||Natively built in as a part of Azure Data Migration Service (DMS) migration process. Natively built for custom data migration projects as an external Log Replay Service (LRS).
Not available as High availability solution, because other High availability methods are included with every database and it is not recommended to use Log-shipping as HA alternative. Disaster recovery is discussed in Overview of business continuity. Not available as a replication mechanism between databases - use secondary replicas on Business Critical tier, auto-failover groups, or transactional replication as the alternatives.
|Logins and users||Yes, but
||Yes, with some differences. Windows logins are not supported and they should be replaced with Azure Active Directory logins.|
|Minimal logging in bulk import||No, only Full Recovery model is supported.||No, only Full Recovery model is supported.|
|Modifying system data||No||Yes|
|OPENDATASOURCE||No||Yes, only to SQL Database, SQL Managed Instance and SQL Server. See T-SQL differences|
|OPENQUERY||No||Yes, only to SQL Database, SQL Managed Instance and SQL Server. See T-SQL differences|
|OPENROWSET||Yes, only to import from Azure Blob storage.||Yes, only to SQL Database, SQL Managed Instance and SQL Server, and to import from Azure Blob storage. See T-SQL differences|
|Operators||Most - see individual operators||Yes - see T-SQL differences|
|Polybase||No. You can query data in the files placed on Azure Blob Storage using
||No. You can query data in the files placed on Azure Blob Storage using
|Machine Learning Services(Formerly R Services)||Yes, in public preview||No|
|Recovery models||Only Full Recovery that guarantees high availability is supported. Simple and Bulk Logged recovery models are not available.||Only Full Recovery that guarantees high availability is supported. Simple and Bulk Logged recovery models are not available.|
|RESTORE statements||No||Yes, with mandatory
|Restore database from backup||From automated backups only - see SQL Database recovery||From automated backups - see SQL Database recovery and from full backups placed on Azure Blob Storage - see Backup differences|
|Restore database to SQL Server||No. Use BACPAC or BCP instead of native restore.||No, because SQL Server database engine used in SQL Managed Instance has higher version than any RTM version of SQL Server used on-premises. Use BACPAC, BCP, or Transactional replication instead.|
|Service Broker||No||Yes, but only within the instance. If you are using remote Service Broker routes, try to consolidate databases from several distributed SQL Server instances into one SQL Managed Instance during migration and use only local routes. See Service Broker differences|
|Server configuration settings||No||Yes - see T-SQL differences|
|Set statements||Most - see individual statements||Yes - see T-SQL differences|
|SQL Server Agent||No - see Elastic jobs (preview)||Yes - see SQL Server Agent differences|
|SQL Server Auditing||No - see SQL Database auditing||Yes - see Auditing differences|
|System stored functions||Most - see individual functions||Yes - see Stored procedures, functions, triggers differences|
|System stored procedures||Some - see individual stored procedures||Yes - see Stored procedures, functions, triggers differences|
|System tables||Some - see individual tables||Yes - see T-SQL differences|
|System catalog views||Some - see individual views||Yes - see T-SQL differences|
|TempDB||Yes. 32-GB size per core for every database.||Yes. 24-GB size per vCore for entire GP tier and limited by instance size on BC tier|
|Temporary tables||Local and database-scoped global temporary tables||Local and instance-scoped global temporary tables|
|Time zone choice||No||Yes, and it must be configured when the SQL Managed Instance is created.|
|Trace flags||No||Yes, but only limited set of global trace flags. See DBCC differences|
|Transactional Replication||Yes, Transactional and snapshot replication subscriber only||Yes, in public preview. See the constraints here.|
|Transparent data encryption (TDE)||Yes - General Purpose and Business Critical service tiers only||Yes|
|Windows Server Failover Clustering||No. Other techniques that provide high availability are included with every database. Disaster recovery is discussed in Overview of business continuity with Azure SQL Database.||No. Other techniques that provide high availability are included with every database. Disaster recovery is discussed in Overview of business continuity with Azure SQL Database.|
The Azure platform provides a number of PaaS capabilities that are added as an additional value to the standard database features. There is a number of external services that can be used with Azure SQL Database.
|Platform feature||Azure SQL Database||Azure SQL Managed Instance|
|Active geo-replication||Yes - all service tiers other than hyperscale||No, see Auto-failover groups as an alternative|
|Auto-failover groups||Yes - all service tiers other than hyperscale||Yes, see Auto-failover groups|
|Auto-scale||Yes, but only in serverless model. In the non-serverless model, the change of service tier (change of vCore, storage, or DTU) is fast and online. The service tier change requires minimal or no downtime.||No, you need to choose reserved compute and storage. The change of service tier (vCore or max storage) is online and requires minimal or no downtime.|
|Automatic backups||Yes. Full backups are taken every 7 days, differential 12 hours, and log backups every 5-10 min.||Yes. Full backups are taken every 7 days, differential 12 hours, and log backups every 5-10 min.|
|Automatic tuning (indexes)||Yes||No|
|Azure Resource Health||Yes||No|
|Backup retention||Yes. 7 days default, max 35 days.||Yes. 7 days default, max 35 days.|
|Data Migration Service (DMS)||Yes||Yes|
|Elastic jobs||Yes - see Elastic jobs (preview)||No (SQL Agent can be used instead).|
|File system access||No. Use BULK INSERT or OPENROWSET to access and load data from Azure Blob Storage as an alternative.||No. Use BULK INSERT or OPENROWSET to access and load data from Azure Blob Storage as an alternative.|
|Long-term backup retention - LTR||Yes, keep automatically taken backups up to 10 years.||Not yet. Use
|Pause/resume||Yes, in serverless model||No|
|Public IP address||Yes. The access can be restricted using firewall or service endpoints.||Yes. Needs to be explicitly enabled and port 3342 must be enabled in NSG rules. Public IP can be disabled if needed. See Public endpoint for more details.|
|Point in time database restore||Yes - all service tiers other than hyperscale - see SQL Database recovery||Yes - see SQL Database recovery|
|Resource pools||Yes, as Elastic pools||Yes. A single instance of SQL Managed Instance can have multiple databases that share the same pool of resources. In addition, you can deploy multiple instances of SQL Managed Instance in instance pools (preview) that can share the resources.|
|Scaling up or down (online)||Yes, you can either change DTU or reserved vCores or max storage with the minimal downtime.||Yes, you can change reserved vCores or max storage with the minimal downtime.|
|SQL Alias||No, use DNS Alias||No, use Clicongf to set up alias on the client machines.|
|SQL Data Sync||Yes||No|
|SQL Server Analysis Services (SSAS)||No, Azure Analysis Services is a separate Azure cloud service.||No, Azure Analysis Services is a separate Azure cloud service.|
|SQL Server Integration Services (SSIS)||Yes, with a managed SSIS in Azure Data Factory (ADF) environment, where packages are stored in SSISDB hosted by Azure SQL Database and executed on Azure SSIS Integration Runtime (IR), see Create Azure-SSIS IR in ADF.
To compare the SSIS features in SQL Database and SQL Managed Instance, see Compare SQL Database to SQL Managed Instance.
|Yes, with a managed SSIS in Azure Data Factory (ADF) environment, where packages are stored in SSISDB hosted by SQL Managed Instance and executed on Azure SSIS Integration Runtime (IR), see Create Azure-SSIS IR in ADF.
To compare the SSIS features in SQL Database and SQL Managed Instance, see Compare SQL Database to SQL Managed Instance.
|SQL Server Reporting Services (SSRS)||No - see Power BI||No - use Power BI paginated reports instead or host SSRS on an Azure VM. While SQL Managed Instance cannot run SSRS as a service, it can host SSRS catalog databases for a reporting server installed on Azure Virtual Machine, using SQL Server authentication.|
|Query Performance Insights (QPI)||Yes||No. Use built-in reports in SQL Server Management Studio and Azure Data Studio.|
|VNet||Partial, it enables restricted access using VNet Endpoints||Yes, SQL Managed Instance is injected in customer's VNet. See subnet and VNet|
|VNet Service endpoint||Yes||No|
|VNet Global peering||Yes, using Private IP and service endpoints||Yes, using Virtual network peering.|
|Private connectivity||Yes, using Private Link||Yes, using VNet.|
Azure SQL Database and Azure SQL Managed Instance support various data tools that can help you manage your data.
|Tool||Azure SQL Database||Azure SQL Managed Instance|
|Azure Data Studio||Yes||Yes|
|BACPAC file (export)||Yes - see SQL Database export||Yes - see SQL Managed Instance export|
|BACPAC file (import)||Yes - see SQL Database import||Yes - see SQL Managed Instance import|
|Data Quality Services (DQS)||No||No|
|Master Data Services (MDS)||No||No|
|SMO||Yes||Yes version 150|
|SQL Server Data Tools (SSDT)||Yes||Yes|
|SQL Server Management Studio (SSMS)||Yes||Yes version 18.0 and higher|
|SQL Server PowerShell||Yes||Yes|
|SQL Server Profiler||No - see Extended events||Yes|
|System Center Operations Manager||Yes||Yes|
You can use different migration methods to move your data between SQL Server, Azure SQL Database and Azure SQL Managed Instance. Some methods are Online and picking-up all changes that are made on the source while you are running migration, while in Offline methods you need to stop your workload that is modifying data on the source while the migration is in progress.
|Source||Azure SQL Database||Azure SQL Managed Instance|
|SQL Server (on-prem, AzureVM, Amazon RDS)||Online: Transactional Replication
Offline: Data Migration Service (DMS), BACPAC file (import), BCP
|Online: Data Migration Service (DMS), Transactional Replication
Offline: Native backup/restore, BACPAC file (import), BCP, Snapshot replication
|Single database||Offline: BACPAC file (import), BCP||Offline: BACPAC file (import), BCP|
|SQL Managed Instance||Online: Transactional Replication
Offline: BACPAC file (import), BCP, Snapshot replication
|Online: Transactional Replication
Offline: Cross-instance point-in-time restore (Azure PowerShell or Azure CLI), Native backup/restore, BACPAC file (import), BCP, Snapshot replication
Microsoft continues to add features to Azure SQL Database. Visit the Service Updates webpage for Azure for the newest updates using these filters:
- Filtered to Azure SQL Database.
- Filtered to General Availability (GA) announcements for SQL Database features.
For more information about Azure SQL Database and Azure SQL Managed Instance, see: