---
title: "Deploy MicrosoftSQL Server (MSSQL)"
description: "Deploy a MicrosoftSQL Server (MSSQL) on Railway!"
category: "Storage"
url: https://railway.com/deploy/microsoftsql-server-mssql
---

# Deploy MicrosoftSQL Server (MSSQL)

Deploy a MicrosoftSQL Server (MSSQL) on Railway!

**[Deploy MicrosoftSQL Server (MSSQL) on Railway](https://railway.com/template/microsoftsql-server-mssql)**

- **Creator:** Thalles Passos's Projects
- **Category:** Storage
- **Total deploys:** 14

## Template content

### MicrosoftSQL Server https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/microsoftsqlserver/microsoftsqlserver-plain.svg

- **Source:** https://github.com/ThallesP/microsoft-sql-server
- **Start command:** `/opt/mssql/bin/sqlservr -T1800`

## Documentation

# Deploy and Host Microsoft SQL Server (MSSQL) on Railway

Microsoft SQL Server (MSSQL) is Microsoft's relational database for transactional workloads, internal tools, reporting, and enterprise applications. It supports T-SQL, backups, authentication, and multiple editions for development or production. This template runs SQL Server on Railway with configurable version and license settings.

## About Hosting Microsoft SQL Server (MSSQL)

Hosting Microsoft SQL Server on Railway gives you a simple way to run a full SQL Server instance without managing virtual machines or manual server setup. This template is built for teams that want SQL Server compatibility with a straightforward Railway deployment flow.

Key features include:

- Select the SQL Server license that fits your use case
- Choose the SQL Server edition/version at deploy time
- Connect with standard SQL Server drivers and tools like Azure Data Studio, `sqlcmd`, and SQL Server Management Studio

## Common Use Cases

- Powering applications that depend on SQL Server and T-SQL
- Running internal business tools, dashboards, and back-office systems
- Migrating or testing workloads that already use Microsoft SQL Server

## Dependencies for Microsoft SQL Server (MSSQL) Hosting

- A Railway volume for database storage
- A valid [SQL Server license model](https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-ver16#sql-server-editions) that fits your use case. Product keys are supported.

### Deployment Dependencies

- [SQL Server Linux container deployment docs](https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-docker-container-deployment?view=sql-server-ver16)
- [SQL Server environment variables](https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-ver16)

### Implementation Details

This template supports configurable version and license settings through environment variables such as `MSSQL_VERSION` and `MSSQL_PID`.

## Why Deploy Microsoft SQL Server (MSSQL) on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Microsoft SQL Server (MSSQL) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/microsoftsql-server-mssql
