PROCESS THE VIEWS
PROCESS THE VIEWS
LIFE-CYCLE
script: 08a.add_views.sh
08b.regenerate_views.sh
08c.get_problem_views.sh
- MSSQL Information Schema
- Identify those relations pertaining to views
- Import Information Schema as Foreign Tables
- Copy view definitions into target tables using an ETL process
- DEBUG: Create table that will contain meta data (failed SQL create view(s))
- VIEW CREATION CYCLE: life cycle of success/failure of view creation
- execute a single pass through all view definitions
- execute view SQL: register failure into meta table
- repeat previous steps: until no new views are being created
- output all failed view definitions as individual SQL files
- edit previously generated view definitions
- update view catalog with updated view definitions
- repeat VIEW CREATION CYCLE
TIPS:
- Each pass of the VIEW CREATION CYCLE focuses exclusively upon previously failed views.
- Focus first on views with incorrect or missing functions, improper casting etc.
- Work on those views dependent upon other views last.
- Remember; you are only creating views, validating them is extra :-)