> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/concepts/resources/vulcan/configurations/engines/mssql.md).

# Microsoft SQL Server

Microsoft SQL Server is a relational database used for transactional workloads, data warehousing, and BI. Vulcan runs against SQL Server to manage transformations with version control and gated deployments.

## Local or built-in scheduler

**Engine adapter type**: `mssql`

### Prerequisites

1. A SQL Server instance (on-premises, Azure SQL, or SQL Server in a container)
2. A database user with appropriate permissions
3. Network connectivity to the SQL Server instance

### Permissions

Vulcan requires the following SQL Server permissions:

* `CREATE SCHEMA` on the target database
* `CREATE TABLE` and `CREATE VIEW` on schemas
* `SELECT`, `INSERT`, `UPDATE`, `DELETE` on tables
* `ALTER` on schemas for schema modifications

### Connection options

All the connection parameters you can use when setting up a SQL Server gateway:

| Option                     | Description                                                                   |  Type  | Required |
| -------------------------- | ----------------------------------------------------------------------------- | :----: | :------: |
| `type`                     | Engine type name. Must be `mssql`                                             | string |     Y    |
| `host`                     | The hostname or IP address of the SQL Server instance                         | string |     Y    |
| `port`                     | The port number of the SQL Server instance (default: `1433`)                  |   int  |     Y    |
| `user`                     | The username for SQL Server authentication                                    | string |     Y    |
| `password`                 | The password for SQL Server authentication                                    | string |     Y    |
| `database`                 | The name of the database to connect to                                        | string |     Y    |
| `concurrent_tasks`         | Maximum number of concurrent tasks (default: `4`)                             |   int  |     N    |
| `trust_server_certificate` | Whether to trust the server certificate without validation (default: `false`) |  bool  |     N    |

### Authentication methods

* Username/password authentication (required).
* Certificate validation (optional): use the `trust_server_certificate` parameter. Only set to `true` in development environments.

### Docker images

The following Docker images are available for running Vulcan with SQL Server:

| Image                           | Description                            |
| ------------------------------- | -------------------------------------- |
| `tmdcio/vulcan-mssql:0.228.1.6` | Main Vulcan API service for SQL Server |

Pull the images:

```bash
docker pull tmdcio/vulcan-mssql:0.228.1.6
```

### Materialization strategy

Materialization strategies for Microsoft SQL Server depend on the model kind and engine capabilities. For details on how different model kinds are materialized, see the [model kinds documentation](/concepts/resources/vulcan/components/model/model_kinds.md).

**Learn more about materialization strategies:**

* [INCREMENTAL\_BY\_TIME\_RANGE](/concepts/resources/vulcan/components/model/model_kinds.md#materialization-strategy)
* [INCREMENTAL\_BY\_UNIQUE\_KEY](/concepts/resources/vulcan/components/model/model_kinds.md#materialization-strategy_1)
* [INCREMENTAL\_BY\_PARTITION](/concepts/resources/vulcan/components/model/model_kinds.md#materialization-strategy_3)
* [FULL](/concepts/resources/vulcan/components/model/model_kinds.md#materialization-strategy_2)

{% hint style="info" %}
The `dialect` for SQL Server models should be set to `tsql` (Transact-SQL), not `mssql`.
{% endhint %}

{% hint style="warning" %}
Only set `trust_server_certificate: true` in development environments. In production, configure SSL certificates.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://v2.dataos.info/concepts/resources/vulcan/configurations/engines/mssql.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
