THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

Davide Mauri

A place for my thoughts and experiences the Microsoft Data Platform


While preparing my slides e demos for the forthcoming SQL Server Conference 2012 in Italy, I’ve come across a nice addition to DTS Expression language which I never noticed before and that seems unknown also to the blogosphere: REPLACENULL.

REPLACENULL is the same of ISNULL in T-SQL. It’s *very* useful especially when loading a fact table of your BI solution when you need to replace unexisting reference to dimension with dummy values.

Here’s an example of how it can be used (please notice that in this example I’m NOT loading a fact table):


I’ve noticed that the feature was requested by fellow MVP John Welch

So: Thanks John and Thanks SSIS Team Smile!

Ah, btw, the Help online is here


Published Wednesday, March 21, 2012 8:00 PM by Davide Mauri
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS



Tony said:

Cool. There seem to be lots of nice things in 2012 that aren't getting much attention - the other day I found in books online that 2012 now supports online index operations for LOB columns! I think thats huge, but I've not seen it mentioned anywhere.

March 21, 2012 7:29 PM

jamiet said:

March 22, 2012 8:29 AM

Charles Kincaid said:

Nice.  Available in SSIS only, is it.  Pity.  Would be very nice in T-SQL as well.  REPLACENULL is a bit more obvious than COALESCE.  At least to me it is.

March 26, 2012 9:14 PM

Leave a Comment


About Davide Mauri

Director of Software Development & Cloud Infrastructure @ Sensoria, an innovative smart garments and wearable company. After more than 15 year playing with the Microsoft Data Platform, with a specific focus on High Performance databases, Business Intelligence, Data Science and Data Architectures, he's now applying all his skills to IoT, defining architectures to crunch numbers, create nice user experiences and provide meaningful insights, all leveraging Microsoft Azure cloud. MVP on Data Platform since 2006 he has a very strong background development and love both the ER model and OO principles. He is also a fan of Agile Methodology and Automation, which he tries to apply everywhere he can, to make sure that "people think, machines do".

This Blog


Privacy Statement