Advertisement

04.23.2008 at 08:13AM PDT, ID: 23346905
[x]
Attachment Details

Using DTS Transformation to replace NULL strings with actual "NULL" String

Asked by ktQueBIT in MS SQL DTS, VB Script

Tags: , , ,

I am trying to replace the NULL values from my data source before the transactions are inserted into my data warehouse.  I want to replace the <NULL> values with a string that actually says NULL.  This only needs to be done for a few specific columns, so I wanted to do this using my DTS package that loads the data.  So I am trying to use an ActiveX script in the my data transformation for some of the columns and the problem I am having is the vbscript syntax.  I cannot figure out how do the following in vbscript.

IF SOURCECOLUMN is NULL then DESTINATIONCOLUMN = 'NULL'
ELSE DESTINATIONCOLUMN = SOURCECOLUMN

Any help would be greatly appreciated.  Thanks.
Start Free Trial
 
 
[+][-]04.23.2008 at 02:37PM PDT, ID: 21425682

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, VB Script
Tags: Microsoft, SQL Server 2000, SQL Server 2000, DTS Transformation using VBScript
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628