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

Davide Mauri - MCP, MCAD, MCDBA, MCT, MVP on SQL Server - has worked with SQL Server since version 6.5, and his interests cover the whole platform, from the Relational Engine to Analysis Services, from architecture definition to performance tuning. He also has a strong knowledge of XML, .NET and the Object Oriented Design principles, which allows him to have the correct vision and experience to handle development of complex business intelligence solutions. Having worked as a Microsoft Certified Teacher for many years, Davide is able to pass all his knowledge to his co-workers, allowing his team to deliver high-quality solutions. He currently works as a Mentor for SolidQ and can be found speaking in many Italian and internationals events.

This Blog


Privacy Statement