Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlg repository for tutorial

Docker Build status

Docker Hub Docker Pulls Docker Stars

This repository contains Dockerfile of apache-airflow for Docker's automated build published to the public Docker Hub Registry.


1. The proposed environment

Follwing step will assume those tools are installed

2. Envirioment preparation

2.1. Create github repo by fork

  1. create fork from sqlg-tutor

  2. Clone sqlg-tuto from github

  • Suggest directory as C:\Proj\saastoolset\sqlg-tutor

2.2. Pull db image

. Pull image

    C:> docker pull mcr.microsoft.com/mssql/server

3. Database install and run script

3.1 Start container

3.1.1. Windows

. Start by option and open in browser, e.g. tutorial model

C:> docker run --name mssql-h1 -d -p 1433:1433 -e "MSSQL_SA_PASSWORD=MyPassw0rd" -e "ACCEPT_EULA=Y" mcr.microsoft.com/mssql/server

3.1.2. Linux

  • Start by option and open in browser, e.g. tutorial model
$ docker run --name mssql-h1 -d -p 1433:1433 -e 'MSSQL_SA_PASSWORD=MyPassw0rd' -e 'ACCEPT_EULA=Y' mcr.microsoft.com/mssql/server

3.1.3. Mac

  • Start by option and open in browser, e.g. tutorial model
$ docker run --name mssql-h1 -d -p 1433:1433 -e 'MSSQL_SA_PASSWORD=MyPassw0rd' -e 'ACCEPT_EULA=Y' mcr.microsoft.com/mssql/server

3.2 Connect by sql client

  • Use SSMS in MSSQL
  ServerName: 127.0.0.1
  Authentication: SQL Server Authentication
  Login: sa
  Password: MyPassw0rd

3.3 Build SQLEXT

SQLEXT use for ETL date conversion function when call from stored procedure from scheduler.

3.3.1 Create database and Schema from sql client tool

  • For tutorial, create DB name as Tutor, schema SQLEXT and TRN are requried
  • For implementation project setup, schema will mapping to data zone.

3.3.2 Install SQLEXT from sql client tool

  • Create schema for all data zone, may create schema.ddl by project
  • holiday.ddl, Holiday table for working calendar
  • fn_AddBusinessDays.sql, Business day function on working calendar
  • etldate.sql, ETL date function for SQLG macro
  • sp_drop_if_exists.ddl, Drop if function for MSSQL

3.4 Install tutorial

3.4.1 Build training data

  • Verify by sql client
  • Verify tutorial excel

3.4.2 Build studend list

  • Collect studend list
  • Build studend list

3.5 Install SQLG and ODBC

3.5.1 Install SQLG

3.5.2 config ODBC

  • ODBC configuration

ODBC setup

    ServerName: 127.0.0.1
    DSN: IBMTRN
    Database: Tutor
    Login: sa
    Password: MyPassw0rd

3.5.3 Create or Alter [TRNADM]

  • TRNADM use ODBC link to fetch studend progress into Excel
  • Report display on [pvtProgress]

4. Conduct Training

4.1 For instructor

  • {STUD_ID}=ODP00
  • Demo
  • Track [pvtProgress]

4.2 For student

  • set {STUD_ID}=ODP?? follow instructor's name list
  • Perform exercise follow training material
  • Feedback issue on channel

5. SQLG in db to db

6. SQLG in web application

7. SQLG in Data Vault

8. SQLG in dbt

9. Wanna help?

Fork, improve and PR.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors