# SQL Server Features Not Available in MariaDB

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center">Migrating from SQL Server?</td><td align="center"><a href="https://mariadb.com/contact/?utm_source=onpagepromo&#x26;utm_medium=kb&#x26;utm_campaign=contact-sqlserver-migration&#x26;interest=sqlserver-migration"><strong>Contact our Migration Experts</strong></a></td><td><a href="broken-reference">Broken file</a></td></tr></tbody></table>

When planning a migration between different DBMSs, one of the most important aspects to consider is that the new database system will probably miss some features supported by the old one. This is not relevant for all users. The most widely used features are supported by most DBMSs. However, it is important to make a list of unsupported features and check which of them are currently used by applications. In most cases it is possible to implement such features on the application side, or simply stop using them.

This page has a list of SQL Server features that are not supported in MariaDB. The list is not exhaustive.

## Introduced in SQL Server versions older than 2016

* Full outer joins.
* `GROUP BY CUBE` syntax.
* `MERGE` statement.
* In MariaDB, indexes are always ascending. Defining them as `ASC` or `DESC` has no effect.
  * For single-column indexes, the performance difference between an `ORDER BY ... ASC` and `DESC` is negligible.
  * For multiple-column indexes, an index may be unusable for certain queries because `DESC` is not supported. In some cases, a [generated column](https://mariadb.com/docs/server/reference/sql-statements/data-definition/create/generated-columns) can be used to invert the order of an index (for example, the expression `0 - price` can be indexed to index the prices in a descending order).
* The [WITH](https://mariadb.com/docs/server/reference/sql-statements/data-manipulation/selecting-data/common-table-expressions/with) syntax is currently only supported for the `SELECT` statement.
* Filtered indexes (`CREATE INDEX ... WHERE`).
* Autonomous transactions.
* User-defined types.
* Rules.
* [Triggers](https://mariadb.com/docs/server/server-usage/triggers-events/triggers) don't support the following features:
  * Triggers on DDL and login.
  * `INSTEAD OF` triggers.
  * The `DISABLE TRIGGER` syntax.
* [Cursors](https://mariadb.com/docs/server/reference/sql-statements/programmatic-compound-statements/programmatic-compound-statements-cursors) advanced features.
  * Global cursors.
  * `DELETE ... CURRENT OF`, `UPDATE ... CURRENT OF` statements: MariaDB cursors are read-only.
  * Specifying a direction (MariaDB cursors can only advance by one row).
* Synonyms.
* Table variables.
* Queues.
* XML indexes, XML schema collection, XQuery.
* User access to system functionalities, for example:
  * Running system commands (`xp_cmdshell()`).
  * Sending emails (`sp_send_dbmail()`).
  * Sending HTTP requests.
* External languages, external libraries (MariaDB only supports procedural SQL and PL/SQL).
* Negative permissions (the `DENY` command).
* Snapshot replication. See [Provisioning a Slave](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/migrating-to-mariadb/mariadb-replication-overview-for-sql-server-users#provisioning-a-slave).

## Introduced in SQL Server 2016

* Native data masking
* PolyBase (however, [MariaDB 10.5](https://app.gitbook.com/s/aEnK0ZXmUbJzqQrTjFyb/community-server/old-releases/10.5/what-is-mariadb-105) supports accessing Amazon S3 via the [S3 storage engine](https://mariadb.com/docs/server/server-usage/storage-engines/s3-storage-engine) and several DBMSs via [CONNECT](https://mariadb.com/docs/server/server-usage/storage-engines/connect))
* R and Python services
* ColumnStore indexes. MariaDB has a storage engine called [ColumnStore](https://mariadb.com/docs/server/architecture/topologies/columnstore-object-storage), but this is a completely different feature.

## Introduced in SQL Server 2017

* Adaptive joins
* Graph SQL

## See Also

* [SQL Server Features Implemented Differently in MariaDB](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/migrating-to-mariadb/migrating-to-mariadb-from-sql-server/sql-server-features-implemented-differently-in-mariadb)

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/migrating-to-mariadb/migrating-to-mariadb-from-sql-server/sql-server-features-not-available-in-mariadb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
