THE SQL Server Blog Spot on the Web

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

Davide Mauri

A place for my thoughts and experiences on SQL Server, Business Intelligence and .NET

REPLACENULL in SSIS 2012

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):

image

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

http://connect.microsoft.com/SQLServer/feedback/details/636057/ssis-add-a-replacenull-function-to-the-expression-language

So: Thanks John and Thanks SSIS Team Smile!

Ah, btw, the Help online is here

http://msdn.microsoft.com/en-us/library/hh479601(v=sql.110).aspx

Enjoy!

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

Comments

 

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

(required) 
(required) 
Submit

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

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement