---
title: "Deploy Microsoft SQL Server"
description: "A relational model database server produced by Microsoft"
category: "Other"
url: https://railway.com/deploy/wcAazg
---

# Deploy Microsoft SQL Server

A relational model database server produced by Microsoft

**[Deploy Microsoft SQL Server on Railway](https://railway.com/template/wcAazg)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/wcAazg/manifest.json

- **Creator:** Brody's Projects
- **Category:** Other
- **Total deploys:** 781

## Template content

### MicrosoftSQL https://res.cloudinary.com/h5kvzw/image/upload/v1712791646/Microsoft_SQL_Server_Logo_refined_gat88v.svg

- **Source:** railwayapp-templates/microsoft-sql-server

## Documentation

## Overview

MicrosoftSQL database service. Microsoft SQL Server is a proprietary relational database management system developed by Microsoft.

- A [Volume](https://docs.railway.app/reference/volumes) is mounted to the service to persist data between deploys.

- [TCP proxying](https://docs.railway.app/deploy/exposing-your-app#tcp-proxying) is configured to allow accessing the database from anywhere.

## How to use

Reference the `MSSQL_URL` variable from your service to connect to the database in your tool of choice (e.g. `${{MicrosoftSQL.MSSQL_URL}}`)

## Connecting

Connect to the database using the proxied domain and port found in the service Variables page. The password can also be found on the Variables page.

## License

- Legal Notice: [Container License Information](https://aka.ms/mcr/osslegalnotice)

By passing the value "Y" to the environment variable "ACCEPT_EULA", you are expressing that you have a valid and existing license for the edition and version of SQL Server that you intend to use. You also agree that your use of SQL Server software running in a Docker container image will be governed by the terms of your SQL Server license.

To specify the edition, use the `MSSQL_PID` environment variable. Details can be found in the [Environment Variables](https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-ver16#environment-variables) section of the configuration documentation.

SQL Server Developer edition lets developers build any kind of application on top of SQL Server. It includes all the functionality of Enterprise edition, but is licensed for use as a development and test system, not as a production server. SQL Server Developer Edition cannot be used in a production environment. The SQL Server 2017 Developer Edition license terms are located [here](https://go.microsoft.com/fwlink/?linkid=857698).

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/wcAazg
