Learn

The whole warehouse,staging to marts.

Landing, staging, persistent staging, Data Vault and marts, generated from one model, with the batches and deploy scripts to match. On SQL Server, Azure SQL Database, Azure Synapse, Snowflake or Databricks.

The problem

Five layers. One delivery.

A data warehouse is not one database. Data lands from the source systems, passes through staging, is kept with its history in persistent staging, is integrated by business key in a Data Vault, and is served to analysts as star schemas in data marts. Every layer has its own tables, its own load logic and its own schedule, and every layer depends on the one before it.

Built by hand, each layer is a separate project. Someone writes the staging tables, someone else the vault loads, a third person the marts and a fourth the deploy scripts. The naming drifts, the keys stop matching, and a new source column turns into a week of edits across five codebases. Delivering a warehouse end to end means building every layer from one definition, so they cannot drift apart, then testing and deploying the whole thing like software.

  • One model feeds staging, persistent staging, the raw and business vault, and the marts
  • SQL Server, Azure SQL Database, Azure Synapse, Snowflake or Databricks
  • Orchestration, logging and deploy scripts come with it
Layer 1 · Staging

The project wires the layers.

Staging is the entry point. It holds the delta from the source in source shape and is emptied on every run. For cloud sources, a landing area comes first, so external data is available inside the target platform before anything else touches it.

In BimlFlex you never model the staging layer. You import the source tables, and a project names the connections they flow through: source, stage, persistent stage and target. The staging tables are derived from the sources and your naming conventions at build time. They already carry what the next layer needs, so the business keys and the hash keys for the vault are worked out once, in staging.

  • Staging tables derived from the imported sources
  • Business and hash keys added in staging
  • A landing area for cloud connections
Layer 2 · Persistent staging

Keep every version. Replay any of it.

A persistent staging area (PSA) has the same structure as the source, plus the columns it needs to keep every version it ever received. New data is inserted, never updated, so it works like an archive of the source in its original form, even after the source system has moved on.

That history buys you time. You can start collecting data before the target model is final, then change your mind about the model and replay the history into it. BimlFlex generates the PSA tables keyed on the source key plus the effective date, and a reload procedure per table that copies a date range back into staging so the layers above can be rebuilt from it. Turn Persist History off and the same connection becomes an operational data store that keeps only the current state.

  • Insert-only history, keyed by source key and date
  • A generated reload procedure per table
  • Current state only, if that is all you need
Layer 3 · Data Vault

Raw first. Business on top.

The integration layer is where sources meet. In a Data Vault, hubs hold the business keys, links hold the relationships and satellites hold the descriptive history. The raw vault loads the data without changing what it means. The business vault applies your interpretation on top, in tables with the same structure.

Because the business vault reads from the raw vault, it must load second. BimlFlex treats it as its own area, with its own batch, project and connection, sourced from a view you define in the metadata. The hubs, links, satellites, point-in-time and bridge tables, and the procedures that load them, are all generated with one naming standard and one hashing rule.

  • Hubs, links, satellites, PIT and bridge tables
  • One business key expression, used everywhere
  • Business vault in its own batch, after the raw vault
Layer 4 · Data marts

Stars your analysts can query.

The marts are what people actually use: star schemas of dimensions and facts. Dimensions load first, with surrogate keys and a change type on every column. Type 1 columns are overwritten. Type 2 columns keep history, so a changed row closes the old version and opens a new one. Facts load next and look up each dimension's surrogate key by its integration key.

BimlFlex generates those loads, including Type 2 close-out and, on SSIS loads, inferred members for facts that arrive before their dimension rows. The Dimensional Accelerator drafts the star for you: pick a target project, select your staging or persistent staging tables, preview the model and publish. If your vault has point-in-time tables, the accelerator derives the marts from it, with hubs becoming dimensions and links becoming facts.

  • Type 1 and Type 2 dimensions
  • Surrogate keys
  • Inferred members on SSIS loads
  • A star drafted from staging, persistent staging or the vault
Running it

Every load ordered. Every run on the record.

A warehouse runs as batches, and each batch has to run its loads in the right order. Dimensions, for example, must be loaded before the facts that look them up. Every project belongs to a batch you define, and BimlFlex generates the orchestration for each batch and runs its loads in ordered steps, so the mart batch loads its dimensions in the first step and its facts in the next. Large Data Factory batches are split into sub-batches so they stay inside the service's limits.

Every batch and every load reports to the BimlCatalog, the runtime database you host. It records each execution with its status, start and end, the rows selected, inserted and updated, and any errors. When something fails, the record shows which load, in which run, and how far it got.

  • Generated orchestration for every batch
  • Dependency order inside every batch
  • Executions, row counts and errors in your own database
Testing

Checked before it builds. Counted every time it runs.

A warehouse delivered like software gets checked at every step. In BimlFlex, the Build page runs readiness checks before anything is generated: the compiler, the connections, the project, the imported metadata and the warehouse model. Each gap comes with a sentence saying what is missing and a link to where you fix it.

Validation explains each problem and its fix where you are editing. Every build is kept in a run history with its error and warning counts, and you can treat warnings as errors so nothing half-right gets through. Once it runs, the BimlCatalog row counts tell you what every load did.

  • Readiness checks before every build
  • A run history with error and warning counts
  • Warnings treated as errors, when you choose
Build runs
SucceededNov 3, 21:530 errors, 0 warnings
FailedNov 3, 19:351 errors, 0 warnings
Settings sourceCustom settings
Start build
Build readinessRe-check
Biml compilerPassed.
Warehouse modelImported metadata has not been modeled yet, so a build produces no warehouse artifacts. The Dimensional Accelerator (recommended) or the Data Vault Accelerator turns imports into a model.Open the Accelerator
Build readiness: all checks passedRe-check
Treat warnings as errorsClean output folderInclude extension points
Not ready yet. Nothing has been modeled, and the check says so, with the fix one click away.Ready. After modeling, a re-check collapses to one line.Strict. Warnings now fail the build. This one passes: 0 errors, 0 warnings.
Shipping it

Every environment, the same way.

A full deployment is the build, the deployment and a run of the pipelines. To do that the same way in development, test and production, the warehouse has to exist as files: database projects, pipelines and scripts that a build server can pick up.

A BimlFlex build writes one SQL Server database project per target database, the pipelines for your platform, and starter PowerShell deploy scripts with the connection settings filled in from your metadata. The scripts build each database project and publish it in layer order. From the Build page, CI export packages the project files, the response file and your extension points, with credentials left as environment variables, so your build server reproduces the same build.

  • A database project per layer
  • Deploy scripts in layer order
  • A CI export your build server can run
Your way in

Pick how much you generate.

All three run on Biml, the XML language for data warehouse assets, with BimlScript to loop over metadata. The difference is how much of the warehouse you write yourself.

BimlFlex

For teams delivering or replacing a whole warehouse. One model builds every layer, the orchestration, the run logging and the deploy scripts, on SQL Server, Azure SQL Database, Azure Synapse, Snowflake or Databricks. BimlStudio is included.

One BimlFlex build · files per database project
BFX_STGStaging
14 tables12 procedures
BFX_ODSPersistent staging
10 tables
BFX_DVData Vault
9 hubs6 links12 satellites3 link satellites9 PIT3 bridge14 procedures
BFX_DMData marts
3 dimensions1 fact4 stage tables
BimlExpress

For SSIS teams who want to stop hand‑building the staging layer. Write one BimlScript template that reads the source schema, and BimlExpress generates the staging tables and the SSIS packages that deploy and load them, inside Visual Studio 2012 to 2019. The other layers you write in BimlScript yourself.

DeployStaging.biml · BimlScript
<#@ template tier="20" #><Packages><Package Name="DeployStaging" ConstraintMode="Parallel"><Tasks><# foreach (var table in RootNode.Tables.Where(t => t.Schema.Name == "Staging")) { #><ExecuteSQL Name="Create_<#= table.Name #>" ConnectionName="Target"><DirectInput><#= table.GetDropAndCreateDdl() #></DirectInput></ExecuteSQL><# } #></Tasks></Package></Packages>
BimlStudio

For teams that run their own Biml framework for every layer and need it built from source control. BimlStudio adds the command-line compiler and MSBuild support, writes complete SSIS projects, and imports the SSIS packages you already have.

Build server · MSBuild
> msbuild.exe @"Warehouse\output\Warehouse.mst.resp"
Warehouse.mst.resp, written by BimlStudio"Warehouse.mst.bimlproj"/p:OutputPath="output"/p:SqlVersion=SqlServer2019/p:SsisVersion=Ssis2019/p:SsisDeploymentModel=Project/p:TaskName=Varigence.Biml.Engine.MSBuild.BimlCompilerTask
Packages.dtsx, one per loadSSIS project.dtproj and .paramsDeployment file.ispac

Generate every layer. Own every line.

BimlFlex pricing is online. Buy there, or talk to sales for quotes, resellers and large teams.