2021-02-23 19:08:06 +03:00
.. meta ::
:description: Hasura MS SQL Server database support
:keywords: hasura, docs, databases, ms sql, sql server
2021-06-17 14:46:54 +03:00
.. _database_ms_sql_server:
2021-02-23 19:08:06 +03:00
MS SQL Server
=============
.. contents :: Table of contents
:backlinks: none
:depth: 2
:local:
Introduction
------------
2021-08-09 14:04:23 +03:00
Hasura allows connecting to a SQL Server database and build a GraphQL API based on the database schema.
2021-02-23 19:08:06 +03:00
2021-06-17 14:46:54 +03:00
.. admonition :: Supported versions:
2021-02-23 19:08:06 +03:00
2021-06-17 14:46:54 +03:00
1. Hasura GraphQL engine `` v2.0.0-alpha.2 `` onwards
2. SQL Server 2016 and upwards
2021-02-23 19:08:06 +03:00
2021-06-17 14:46:54 +03:00
Get Started
-----------
2021-02-23 19:08:06 +03:00
2021-06-17 14:46:54 +03:00
To try Hasura with SQL Server, you'll need your own new or existing SQL Server database.
2021-02-23 19:08:06 +03:00
2021-08-26 12:12:25 +03:00
Here are 2 ways you can get started with Hasura and SQL Server:
2021-02-23 19:08:06 +03:00
2021-08-26 12:12:25 +03:00
1. :ref: `Hasura Cloud <database_ms_sql_server_cloud>` : You'll need to be able to access your SQL Server database from Hasura Cloud.
2. :ref: `Docker <database_ms_sql_server_docker>` : Run Hasura with Docker and then connect your SQL Server database to Hasura.
2021-02-23 19:08:06 +03:00
2021-08-26 12:12:25 +03:00
Supported features
------------------
2022-01-05 19:38:39 +03:00
Hasura currently supports queries, subscriptions, inserts, deletes, relationships and permissions on MS SQL Server.
2021-02-23 19:08:06 +03:00
2021-08-26 12:12:25 +03:00
Next up on our roadmap for Hasura + SQL Server:
2021-02-23 19:08:06 +03:00
2021-08-26 12:12:25 +03:00
- Support for stored procedures & functions (`#7073 <https://github.com/hasura/graphql-engine/issues/7073> `__ )
2022-01-05 19:38:39 +03:00
- Mutations: Run updates, stored procedures and transactions securely on SQL Server over a GraphQL API (`#7074 <https://github.com/hasura/graphql-engine/issues/7074> `__ )
2021-08-26 12:12:25 +03:00
- Event triggers: Trigger HTTP webhooks with atomic capture and atleast once guarantee whenever data changes inside the database (`#7075 <https://github.com/hasura/graphql-engine/issues/7075> `__ )
- Remote Joins: Join models in SQL Server to models from other API services (GraphQL or REST) (`#7076 <https://github.com/hasura/graphql-engine/issues/7076> `__ )
Keep up to date
---------------
2021-02-23 19:08:06 +03:00
If you'd like to stay informed about the status of SQL Server support, subscribe to our newsletter and join our discord!
- https://hasura.io/newsletter/
- https://discord.com/invite/hasura
2021-05-18 13:03:47 +03:00
.. admonition :: Additional Resources
This Hands-on Demo walks you through Getting Started with Hasura on SQL Server & common use cases. - `View Recording here <https://hasura.io/events/webinar/hasura-sql-server/?pg=docs&plcmt=body&cta=view-recording&tech=> `__ .
2021-06-17 14:46:54 +03:00
2021-06-23 11:09:20 +03:00
Know more
---------
2021-06-17 14:46:54 +03:00
.. toctree ::
:maxdepth: 1
:titlesonly:
Getting Started <getting-started/index>
Schema <schema/index>
Queries <queries/index>
2021-11-19 20:05:01 +03:00
Mutations <mutations/index>
2021-06-17 14:46:54 +03:00
Subscriptions <subscriptions/index>
.. TODO: DB-COMPATIBILITY
.. toctree ::
:maxdepth: 1
:titlesonly:
Supported MS SQL Server types <mssql-types>