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 the Microsoft Data Platform

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

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

Syndication

Privacy Statement