To work with this repository, run the following command in your terminal to clone: git clone https://github.com/lth-devs-mpz/lth-dms-data-model.git
- A structured, source-controlled SQL Server data model for the LTH Daily Management System (DMS).
- This repository contains the full schema, database project with supporting documentation.
- A SQL Server Database Project representing the DMS schema
- Automatically generated schema objects (Tables, Views, Functions, Stored Procedures).
- This repo is intended for developers, analysts, DBAs, and integration teams working with the LTH DMS platform.
- DataHub/1- SnowFlake to Local DataHub Server - Objects pulled from DataHub snowflake instance downstream to a local SQL Instance - datatypes defined to allow quicker data transfer from Snowflake to SQL database.
- DataHub/2- Local DataHub to BI SQL for DMS - local database and views developed from snowflake data.
Before working with the LTH DMS Data Model, ensure you have the following:
Access is managed through the Rostering Team and Allocate/DataHub.
- An active Snowflake account with the correct role permissions to query and manage DMS-related DataHub objects.
- Snowflake ODBC Driver installed for SQL connectivity.
Note: Download: Snowflake ODBC Driver documentation https://docs.snowflake.com/en/developer-guide/odbc/odbc-download
Note: Before proceeding, ensure your SQL Server instance is configured with valid Snowflake credentials.
- DATA_SHARE_DB/OPTIMA_ADVANCED – Advanced views
- DATA_SHARE_DB/OPTIMA_MANAGED – Managed views
- Knowledge of Transact-SQL (T-SQL)
- SQL Server Management Studio (SSMS) for deployment and management.
This SQL script creates and configures the DATA_SHARE_DB database in Microsoft SQL Server. Replicating the SnowFlake instance setup.
- Creates the
DATA_SHARE_DBdatabase with specified file paths and sizes. - Enables Full-Text Search (if installed).
- Configures essential database options for performance and reliability.
- Enables and configures Query Store for query performance tracking.
- Open SQL Server Management Studio (SSMS).
- Connect to your SQL Server instance.
- Run the script: DatabaseModels/DataHub/create_data_share_db.sql;
- This project is licensed under the MIT License. See the LICENSE file for details.