# SQL\_MODE=MSSQL

`SET SQL_MODE=MSSQL` implies all the following [sql\_mode](/docs/server/server-management/variables-and-modes/sql_mode.md) flags:

* [PIPES\_AS\_CONCAT](/docs/server/server-management/variables-and-modes/sql_mode.md)
* [ANSI\_QUOTES](/docs/server/server-management/variables-and-modes/sql_mode.md)
* [IGNORE\_SPACE](/docs/server/server-management/variables-and-modes/sql_mode.md)
* [NO\_KEY\_OPTIONS](/docs/server/server-management/variables-and-modes/sql_mode.md)
* [NO\_TABLE\_OPTIONS](/docs/server/server-management/variables-and-modes/sql_mode.md)
* [NO\_FIELD\_OPTIONS](/docs/server/server-management/variables-and-modes/sql_mode.md)

Setting the [sql\_mode](/docs/server/server-management/variables-and-modes/sql_mode.md) system variable to `MSSQL` allows the server to understand a small subset of Microsoft SQL Server's language. For the moment `MSSQL` mode only has limited functionality, but we plan to add more later according to demand.

## Supported Syntax in MSSQL Mode

### Using \[] for Quoting

One can use \[] instead of "" or \`\` for quoting [identifiers](/docs/server/reference/sql-structure/sql-language-structure/identifier-names.md):

```sql
SET SQL_MODE="MSSQL";
CREATE TABLE [t 1] ([a b] INT);
SHOW CREATE TABLE [t 1];
Table  Create Table
t 1    CREATE TABLE "t 1" (
  "a b" INT(11) DEFAULT NULL
)
```

You can use '\[' in identifiers. If you want to use ']' in identifiers\
you have to specify it twice.

## See Also

* [SQL\_MODE=ORACLE](/docs/release-notes/community-server/about/compatibility-and-differences/sql_modeoracle.md)

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

{% @marketo/form formid="4316" 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/release-notes/community-server/about/compatibility-and-differences/sql_modemssql.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.
