Database compatibility |
100 - 160 |
100 - 160 |
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 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, see Auditing |
Yes, see Auditing, with some differences |
Microsoft Entra authentication (formerly Azure Active Directory) |
Yes, for database-level users. Server-level logins are in preview. |
Yes. Both database-level users and server-level logins. |
BACKUP command |
No, only system-initiated automatic backups, see Automated backups in Azure SQL Database |
Yes, user initiated copy-only backups to Azure Blob storage (automatic system backups can't be initiated by user), see Backup differences and Automated backups in Azure SQL Managed Instance. |
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 BACKUP and CREATE operations. |
Yes, without access to file system for BACKUP and CREATE operations, see certificate differences. |
Change data capture - CDC |
Yes, for S3 tier and above. Basic, S0, S1, S2 aren't supported. |
Yes |
Collation - server/instance |
Yes, the default database collation is SQL_Latin1_General_CP1_CI_AS . The database collation can be set on database creation and can't be updated. Specify a collation for data (COLLATE ) and a catalog collation for system metadata and object identifiers (CATALOG_COLLATION ). In Azure SQL Database, there's no 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 CREATE ASSEMBLY statement, see CLR differences |
Credentials |
Yes, but only database scoped credentials. |
Yes, but only Azure Key Vault and SHARED ACCESS SIGNATURE are supported, see details |
Cross-database/three-part name queries |
No, see Elastic queries |
Yes |
Cross-database transactions |
No |
Yes, within the instance. See Linked server differences for cross-instance queries. |
Database mail - DbMail |
No |
Yes |
Database mirroring (deprecated) |
No |
No |
Database mirroring in Microsoft Fabric |
Yes |
No |
Database snapshots |
No |
No |
Database virtualization |
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 |
Yes, DTC for Azure SQL Managed Instance, and Elastic transactions |
DML triggers |
Most, see individual statements |
Yes |
DMVs |
Most, see individual DMVs |
Yes, see T-SQL differences |
Elastic query |
Yes, with required RDBMS type (preview) |
No, use native cross-DB queries and Linked Server |
Event notifications |
No, see Alerts |
No |
Expressions |
Yes |
Yes |
Extended events (XEvent) |
Some, see Extended Events in Azure SQL Database and Azure SQL Managed Instance |
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 ALTER DATABASE ADD FILE. |
Filestream |
No |
No, see SQL managed instances features. |
Full-text search (FTS) |
Yes, but non-Microsoft filters and word breakers aren't supported |
Yes, but non-Microsoft filters and word breakers aren't 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 |
Ledger |
Yes |
Yes |
Link feature |
No |
Yes (preview for DR) |
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 |
Availability through redundancy 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. Not available as High availability solution, because other Availability through redundancy methods are included with every database and it isn't 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, failover groups, or transactional replication as the alternatives. |
Logins and users |
Yes, but CREATE LOGIN and ALTER LOGIN statements are limited. Windows logins are not supported. Microsoft Entra logins are in preview. EXECUTE AS LOGIN isn't supported - use EXECUTE AS USER . |
Yes, with some differences. See Windows Authentication for Azure SQL Managed Instance - the process requires Active Directory synchronization to Microsoft Entra ID. |
Maintenance window selection |
Yes |
Yes |
Configure advance notifications for planned maintenance events |
Yes |
Yes, in preview |
Minimal logging in bulk import |
No, only Full Recovery model is supported. |
No, only Full Recovery model is supported. |
Modifying system data |
No |
Yes |
OLE Automation |
No |
No |
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 OPENROWSET function or use an external table that references a serverless SQL pool in Synapse Analytics. |
Yes, for Azure Data Lake Storage (ADLS) and Azure Blob Storage as data source. See Data virtualization with Azure SQL Managed Instance for more details. |
Query Notifications |
No |
Yes |
Query Store |
Yes |
Yes |
Query Store for secondary replicas |
No, the Query Store for secondary replicas feature isn't available for Azure SQL Database. Currently, the Query Store on the secondary replica contains information about workloads from the primary replica. |
No, the Query Store for secondary replicas feature isn't available for Azure SQL Managed Instance. Currently, the Query Store on the secondary replica contains information about workloads from the primary replica. |
Machine Learning Services (Formerly R Services) |
No |
Yes, see Machine Learning Services in Azure SQL Managed Instance |
Recovery models |
Only Full Recovery that guarantees high availability is supported. Simple and Bulk Logged recovery models aren't available. |
Only Full Recovery that guarantees high availability is supported. Simple and Bulk Logged recovery models aren't available. |
Resource governor |
No |
Yes |
RESTORE statements |
No |
Yes, with mandatory FROM URL options for the backups files placed on Azure Blob Storage. See Restore differences |
Restore database from backup |
From automated backups only, see Restore a database from a backup |
From automated backups, see Restore a database from a backup 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. |
Yes, only to SQL Server 2022 from instances that have the SQL Server 2022 update policy. For more information, review Restore a database to SQL Server 2022 from Azure SQL Managed Instance. Otherwise, use BACPAC, BCP, or Transactional replication. |
Semantic search |
No |
No |
Service Broker |
No |
Yes. 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 |
Yes, see SQL Server Agent differences |
SQL Server Auditing |
No, see Auditing for Azure SQL Database |
Yes, see Auditing differences |
Synapse Link for SQL |
Yes |
No |
System 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, see Time zones, 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, see limitations of replication in SQL Managed Instance. |
Transparent data encryption (TDE) |
Yes, see TDE for Azure SQL |
Yes, see TDE for Azure SQL |
Windows authentication |
No |
Yes, see Windows Authentication for Microsoft Entra principals |
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. |