Skip to main content

104 docs tagged with "BimlScript"

View all tags

8 Practical Biml Tips

Eight practical tips for working with Biml in Visual Studio, including editor settings, directive placement, escaping characters, and learning paths.

Automating Lookups with Biml

Drive a Biml package generator from header and detail metadata tables that describe a base SELECT and a sequence of Lookup transforms for dimensional denormalization.

Beginning with Biml

Understand what Biml describes, how to install it, and the five small exercises that build a working foundation for SSIS automation.

Biml Basics Overview

Walk through the first three exercises every Biml learner should complete: a blank package, a project connection, and a truncate-and-reload staging package.

Biml Functionality in BIDS Helper

Overview of the Biml Package Generator feature in BIDS Helper, what it produces, and why script-driven Biml beats hand-built SSIS for repetitive packages.

Biml Syntax Basics and Rules

Learn the structural rules of a Biml file, including root elements, plural collections, naming conventions, illegal characters, and whitespace handling.

BimlExpress Preview Pane

Use the BimlExpress preview pane to see expanded Biml output without writing it to a file, including SQL output produced through code that uses GetDropAndCreateDdl.

BimlScript Code Nuggets

Survey the five kinds of code nugget that mix C# or VB into a Biml document and look at how text nuggets substitute computed values into the output.

BimlScript Control Nuggets

Use control nuggets to add loops, conditionals, and external metadata calls that determine which Biml fragments are emitted.

Build Automated Staging Layer

Learn to automate staging layer creation across SSIS, ADF, Databricks, Snowflake, and Microsoft Fabric using BimlScript metadata-driven development.

C# and VB Code Files in Biml

Move shared C# or VB logic out of Biml files and into external code files using the code directive so the same helpers can drive many projects.

C# Extension Methods for Biml

Convert helper methods in a Biml C# code file into extension methods so they can be called directly on Biml objects.

CallBimlScript for Reuse

Reuse Biml across files and projects by moving common patterns into a callee file and invoking it with parameters from a caller file.

Cleaning a Database with Biml

Generate an SSIS package that drops every table in a target database by looping over INFORMATION_SCHEMA until no tables remain.

Creating a Basic Package Using Biml

Walk through the steps of authoring a small Biml file and expanding it into an SSIS package using the Biml Package Generator in BIDS Helper.

Creating a Staging Area with Biml

Generate CREATE TABLE statements for an entire staging environment by reading INFORMATION_SCHEMA from the source database and emitting an ExecuteSQL task per table.

Defining the Data Flow in Biml

Use default outputs and explicit InputPath elements to control how data flows from one component to the next in a Biml-defined SSIS dataflow.

Export Data to Flat Files with Biml

Use BimlScript to loop over every table in a source database, generate matching flat file formats and connections, and build a single package that exports each table to a CSV file in parallel.

Export to Split Flat Files with Biml

Generate SSIS packages that split a large source table into multiple flat files using OFFSET FETCH and a Biml script that calls another Biml script.

For Each Loops with Biml over Flat Files

Generate an SSIS package that loops over every CSV file in a directory, imports each into a single SQL Server target table, and stores the file name with each row.

Fully Automate the Biml Expansion

Use the BimlStudio command-line compiler to expand Biml files into SSIS packages outside the IDE so the build runs unattended on a schedule or in CI.

Global Directive in Biml

Use the global directive to inject shared content like template language settings, headers, namespaces, or includes into every Biml file at once.

Housekeeping with Biml

Tag every Biml managed table with an extended property and let the generation template emit a drop step for any tagged table no longer in the metadata.

Import Metadata with GetDatabaseSchema

Use GetDatabaseSchema to pull schema, table, and view metadata from a source database into Biml so generated packages and SQL stay in step with the source.

Importing a Text File with Biml

Define the FlatFileConnection, FlatFileFormat, and FlatFileSource needed to read a delimited text file in an SSIS data flow generated from Biml.

Include Files in Biml

Use the Biml include directive to copy shared markup from one file into another so common variables, tasks, or fragments live in a single place.

Index Management with Biml

Preserve existing indexes on staging tables when generating drop and create DDL by importing the live target indexes back into the Biml table definition.

Making Biml Files Less Complex

Reduce mixed XML and C# complexity in Biml files by splitting into includes, using CallBimlScript, and pushing string assembly into T-SQL stored procedures.

Meta Data Driven SSIS Solution with Biml

Architecture overview for a metadata driven SSIS solution that uses Biml and BimlScript to generate table load packages and a master package from a source to target mapping table.

Metadata Based SSIS with Biml, Part 1

Drive Biml table generation from a small metadata table in the target database, attach the source SELECT as an annotation, and emit the create plus load packages.

Metadata Based SSIS with Biml, Part 2

Extend the metadata layer with multiple source connections and per table column lists, then carry the source connection and column choice through annotations into the load package.

Metadata Design Patterns in Biml

Build SSIS staging packages from a flat file using Biml, then convert hardcoded values into a metadata driven generator that reads file format and column details from a database.

Reverse Engineering Metadata with Biml

Use BimlScript and ImportDB to reverse engineer table metadata out of an existing staging database into a metadata model that drives future Biml generation.

Skip Existing Objects with Biml

Compare the Biml definition of a table against the live database before recreating it so unchanged objects keep their data and indexes.

SSAS Dimension Processing with Biml

Build SSIS packages that ProcessUpdate every dimension in an SSAS database, either as a single processing task or as one task per dimension inside a parallel container.

SSAS Partition Processing with Biml

Use AMO inside BimlScript to find the most recently processed partitions in each SSAS measure group and emit a Partition Processing task that targets only those partitions.

SSAS Processing Patterns with Biml

Generate SSIS packages that process every dimension, the most recent fact partitions, and cube indexes in an SSAS database from a single Biml script.

The Foreach ADO Iterator in Biml

Use the ForEachAdoLoop control-flow task to iterate over a recordset variable and run multiple SQL tasks per row, with locally scoped loop variables.

Tiered Biml Files

Split a Biml solution across tiered files so that connections, packages, and orchestrators can be built in dependency order from a shared RootNode.

Using Biml Annotations

Tag generated SSIS packages with Biml annotations and read those tags in later scripts to drive package grouping and master orchestration.

VB Option Explicit and Strict in Biml

Use the optionexplicit and optionstrict template attributes to write less verbose Visual Basic BimlScript when full type declarations are not needed.

Why Biml: An Introduction

An introduction to Biml and BimlScript covering what they are, why they exist, the tools that author them, the wider product ecosystem, and where Biml fits beyond SSIS.