Skip to main content

56 docs tagged with "framework"

View all tags

Add a Description to a Package

Attaches a 'Description' annotation to an SSIS Package so the text shows up in the package properties pane and SSIS catalog metadata.

Add a Row Number Column to a Flat File Export

Adds a sequential row-number column to a flat-file export by piping an OLE DB source through a Script Component transformation that increments a counter for every row, so downstream business users have a stable line reference when reporting issues with the file.

Add a Row Number Column with a Script Component Transformation

Loops over every user table in a SQL Server source and emits one extract package per table; each package reads the current max(rownumber) from the destination, runs the source through a Script Component transformation that adds an incrementing 'rownumber' column, and writes it to the destination table.

ADO.NET Connection

Declares an ADO.NET connection manager that uses the System.Data.SqlClient provider with Windows Integrated Security to talk to a SQL Server database.

Analysis Services Connection

Declares an AnalysisServicesConnection that targets an SSAS multidimensional cube through the MSOLAP provider with Impersonate authentication, ready for use by Processing or Execute DDL tasks.

Biml Export to Flat File

Reads INFORMATION_SCHEMA from a SQL Server source to generate a per-table FlatFileFormat, FlatFileConnection, and OLE DB to FlatFileDestination dataflow, producing one delimited extract per base table in the chosen schema.

Cache Connection

Declares a RawFileFormat with three columns and pairs it with a CacheConnection so a Cache Transform can persist lookup data as a typed raw file for reuse across packages.

Call a Web Service from a WebService Task

Builds a package with an HttpConnection pointing at a SOAP WSDL endpoint and a FileConnection for the response, then runs a WebService task that calls the 'GetQuote' method with a stock-symbol variable parameter and writes the returned XML to disk.

Creating a Dimension Modeled by Connection, Database, and Schema

Defines a 'DimProduct' Dimension with key/non-key attributes, attribute-to-attribute relationships, and a multi-level hierarchy ('Categories' rolling up Category, Subcategory, and ProductName), demonstrating how a Dimension references a Schema, which references a Database, which references the underlying Connection.

Creating a ScriptComponentProject

Builds a non-synchronous ScriptComponentProject that consumes an OData service via 'System.Data.Services.Client', pages through results with Skip/Take, and emits one output row per record into a typed OutputBuffer.

Data Vault Metadata Modelling with Biml

How Biml extends an auto-generated Data Vault to handle business keys, satellite splits by fast-changing attributes, and per-attribute manual overrides driven from metadata.

Disable Then Rebuild Non-Clustered Indexes Around a Dataflow

Queries sys.indexes for a target table, captures DISABLE and REBUILD ALTER INDEX statements into an object variable, then uses ForEachAdoLoop containers to disable every non-clustered index before a dataflow and rebuild them afterwards for faster bulk loads.

Embed a Script Task Project Inline

Embeds a complete ScriptTaskProject (assembly references, ReadOnlyVariables, ReadWriteVariables, and 'ScriptMain.cs') directly inside a Script task instead of declaring it under a shared 'ScriptProjects' root, which keeps automation-generated packages self-contained.

Excel OLEDB Connection

Declares an ExcelConnection that targets an .xlsx workbook through the Microsoft ACE OLE DB 12.0 provider with HDR=YES so the first row is treated as column headers.

ExecuteScript Script Project

The ExecuteScript Script Project is a project we use to make shelling out and executing various processes easier.

Executing a Local Process from SSIS

Runs a local executable via an ExecuteProcess task, captures its stdout into the 'User::ProcessOutput' variable, and uses a property expression to build the 'Arguments' string at runtime from the current date in DD-MM-YYYY form.

Extract All Tables

Iterates 'RootNode.Tables' to emit one extract package per table (OleDbSource SELECT * to OleDbDestination, Source to Target connection) plus a driver package that chains all generated packages together with ExecutePackage tasks.

File Connection

Declares a generic File connection manager that points at a single file path with a 'CreateFile' usage so SSIS tasks can produce a new file at that location.

Find Tables missing metadata columns

Validation BimlScript that walks 'RootNode.Tables' and reports any table missing the project's required audit/metadata columns, with optional reporting of passing tables, so the check can run automatically before each build.

Flat File Connection

Declares a tab-delimited FlatFileFormat with nine typed columns and pairs it with a FlatFileConnection that references the format by name, giving SSIS sources and destinations a complete description of the file.

FTP Connection

Declares an FTP connection manager with server, username, and password values so SSIS FTP tasks can transfer files to or from the remote host.

Generating a list of Biml Scripts and Descriptions

Enumerates every '.biml' file in a directory and extracts the 'annotation' element tagged 'Summary' from each file's text, formatting the results as a Confluence wiki table so a team can publish a self-updating catalog of their reusable scripts.

HTTP Connection

Declares an HTTP connection manager configured with a client certificate, server URL, domain, and credentials so SSIS Web Service tasks or script components can call an HTTPS endpoint.

Import Database Assets into Biml with ImportDB

Calls 'AstOleDbConnectionNode.ImportDB()' from a class feature control block, then re-emits the imported Schemas and Tables as Biml via 'GetBiml()' so the model mirrors the live database.

MD5 Script Component

Drops an inline ScriptComponent transformation into a dataflow that concatenates row values and emits an MD5 hash column, useful when policy forbids open-source hashing components or you need a pure-.NET alternative to T-SQL HASHBYTES.

MSMQ Connection

Declares a Microsoft Message Queuing (MSMQ) connection that points at a private local queue, ready for use by SSIS Message Queue tasks.

Pick a Dataflow at Runtime Based on the File Header

Reads the first line of a delimited file as a single 'FileInfo' string, routes it through a Conditional Split that compares against known header signatures, counts rows on each branch, then uses a precedence-constraint expression on a non-zero row count to fire the matching per-layout Dataflow task.

Programmatically Add a File to a BimlStudio Project

Calls 'ProjectManager.GetInstance().Project.AddNewPathToModel' via 'Dispatcher.Invoke' (because the operation runs on the UI thread) so a BimlScript can attach an existing file on disk to the current BimlStudio project.

Reading a Twitter Feed with a Script Component

Calls the legacy Twitter search Atom feed from a custom ScriptComponentSource using a 'SearchTerm' package variable, then writes new tweets above the last-seen TweetNumber to a 'dbo.TwitterLog' table via OleDbDestination.

Reading an RSS Feed with a Script Component

Pulls RSS items from a configurable feed URL via a custom ScriptComponentSource, runs them through a Lookup against an existing log table to filter out items already loaded, and persists new entries into 'dbo.RSSFeedReader' via an OleDbDestination.

Run Every Validation Script in a Directory

Enumerates every Biml file in a configured framework directory whose name matches the 'Val_*' pattern, calls each one via 'CallBimlScript', and inlines the captured output as XML comments so a single Preview executes the whole validation suite.

Setting variable values using Transformer BimlScript

Uses an expression control block inside a transformer to set package variable values from properties of the TargetNode and from annotation lookups via 'GetTag(string)', so the same transformer can populate per-table SchemaName, TableName, and PackageName variables across many packages.

SMTP Connection

Declares an SMTP connection manager with SSL enabled, ready for use by an SSIS Send Mail task.

Split Large Biml Files with the Include Directive

Uses '#@ include file=...#' to pull a FlatFileFormat fragment and an OleDB connection fragment out of separate files and into the parent Biml, so large definitions can be broken into reusable, readable pieces.

SQL Server Management Connection

Declares a SQL Server Management Objects (SMO) connection to a SQL Server instance so SSIS Transfer Database, Transfer Logins, Transfer Jobs, and similar management tasks can manipulate server-level objects.

Transfer SQL Server Objects Between Databases

Wires a TransferSqlServerObjects task to a SqlServerManagementConnection so a package can copy a hand-picked list of tables (and their data) between two SQL Server databases, dropping the destination objects first when they already exist.

Union All from Two SQL Sources to a Flat File

Reads 'SurveyResponses' and 'JuniorSurveyResponses' from a SportsSurvey OLE DB source, merges them with a UnionAll transformation, and writes the combined rows to a semicolon-delimited flat file via a FlatFileFormat and FlatFileConnection.

Use GetTableSql() to Generate CREATE TABLE Scripts

Walks 'RootNode.Tables', 'RootNode.Dimensions', and 'RootNode.Facts' and emits one ExecuteSQL task per modeled object that runs its 'GetTableSql()' DDL against the table's connection, so the resulting SSIS package builds out the target schema from your Biml model.

Using Execute SQL Parameters

Binds package-variable inputs to '?' placeholders in an Execute SQL task's DirectInput query through its 'Parameters' collection, the standard pattern for passing values into parameterized SQL via OLE DB or ODBC connection types.

WMI Connection

Declares a Windows Management Instrumentation (WMI) connection against the local machine's root\cimv2 namespace with Windows authentication, ready for use by SSIS Web Service Management or WMI Data Reader tasks.

Writing Custom Validators Using Biml

This walkthrough demonstrates how to create your own custom errors, warnings, and messages. It also shows how to interact with the validation system to...