Dummy Bindings Table

In the solution I describe in the main article, I used the destination Products_TypeN dimension tables as the bindings tables in the Data Driven Query (DDQ) tasks. Because the dimension tables don't contain bit columns that indicate an attribute change, you have to use tricks such as sending a -1 as the attribute's value to convey the fact that an attribute hasn't changed. Alternatively, you can create a "dummy" (empty) bindings table in the destination system with a structure that's identical to the Prod_log source table and refer to it on the Bindings tab of the DDQ task's Properties dialog box. The queries that you write in the Queries tab can be issued against any table in the destination system, not just against the table referred to on the Bindings tab. Using a dummy bindings table that has the same structure as the Prod_log table lets you map the parameters to the bit columns that indicate whether an attribute changed, without the need for any tricks. In the main article, I chose not to use the dummy bindings table to demonstrate some tricks you can use when source and destination table structures are different. However, I strongly advise you to use the dummy table solution in your production system because this way, the solution is much easier to maintain than when you use the destination table itself.

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottOur Experts will show you:
• Common SQL Server
Problems
• Best Practices for T-SQL
• SQL Server Integration
Services
• Database Development

Come See Michael Otey & Tim Ford in Person!

Early Registration Now Open

From the Blogs
May 21, 2013
blog

A Common Misconception about MAXDOP

Out of the box, SQL Server is (and has been) able to take advantage of multiple processors/cores without any effort on behalf of administrators....More
May 9, 2013
blog

My ISO 8601-Compliant Signature 2

My family recently just "officially" announced that we're in the process of adopting a child from South Africa. We're quite excited, of course, but there's a ton of paperwork to do—along with the need for gobs of signatures....More
May 8, 2013
blog

Use SSIS for ETL from Hadoop

In this blog post, Mark Kromer walks you through using SSIS as a way to use ETL techniques using Microsoft's Hadoop on Windows (HDInsight) as a source using Hive connectors...More
SQL Server Pro Forums

Get answers to questions, share tips, and engage with the SQL Server community in our Forums.