Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.75 KB

microsoft-sql-server.md

File metadata and controls

46 lines (30 loc) · 1.75 KB

Microsoft SQL Server

As per this ADR, the application must store data in the 'Academies Database' which runs on Microsoft SQL Server.

As this setup is relatively unconventional, this documentation may be of use.

Setup

See the Setup Microsoft SQL Server in the getting started documentation for more information.

Running the server

As SQL Server does not run natively on macOS we use the Azure SQL Edge image. See this ADR for the reasons behind this choice.

The script/server script will create the appropriate containers for you.

See the getting started and developer scripts documentation for more.

Tooling

Azure Data Studio is a native application to connect to the local SQL server.

SQL Server 'schemas'

In an unfortunate naming collision, the term 'schema' is used in SQL Server to allow:

...for more flexibility in managing database object permissions.[1]

In production, the application only has access to a single schema (complete) and creates all database tables within that schema.

Locally, the overhead of creating and maintaining the login, users, schemas and permissions was felt to be to high and so we do not use a custom schema in our development setup, creating tables in the default dbo schema.

1