dbTalk Databases Forums  

Incoming SQL Server data all has nulls - how to handle that?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Incoming SQL Server data all has nulls - how to handle that? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bill@sempf.net.nospam
 
Posts: n/a

Default Incoming SQL Server data all has nulls - how to handle that? - 08-23-2005 , 12:31 AM







I am trying to transfer one SQL Server database into a new one. The old one
supported nulls on every colum, and the new one, well, doesn't.

In order to use DTS, do I have to make every transformation a ActiveX script
that checks for nulls and uses the default value for the column if it finds
one in the sporce column? Or is there a global way to do that?

Thanks!

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Incoming SQL Server data all has nulls - how to handle that? - 08-23-2005 , 12:47 AM






There is no Global way of doing this in DTS i.e. replacing all nulls in all
columns with a value as what would that value be? The same in every column
of every table?

Unfortunately you will have to do this the "Long Hand" way.




"bill (AT) sempf (DOT) net.nospam" <billsempfnetnospam (AT) discussions (DOT) microsoft.com> wrote
in message news06D241A-9F9F-4E87-82F0-A4C7F5EC6326 (AT) microsoft (DOT) com...
Quote:
I am trying to transfer one SQL Server database into a new one. The old
one
supported nulls on every colum, and the new one, well, doesn't.

In order to use DTS, do I have to make every transformation a ActiveX
script
that checks for nulls and uses the default value for the column if it
finds
one in the sporce column? Or is there a global way to do that?

Thanks!



Reply With Quote
  #3  
Old   
bill@sempf.net.nospam
 
Posts: n/a

Default Re: Incoming SQL Server data all has nulls - how to handle that? - 08-23-2005 , 02:35 PM



Hi, Allan.

The value would be the default value for the column, just like if I inserted
a row any other way. If I use the longhand method (checking for nulls and
skipping the value if it is null) then that default value is what is
populated. It just makes sense that there should be a default mechanism for
handling that.

If there isn't ... well ... that's just silly!

S

"Allan Mitchell" wrote:

Quote:
There is no Global way of doing this in DTS i.e. replacing all nulls in all
columns with a value as what would that value be? The same in every column
of every table?

Unfortunately you will have to do this the "Long Hand" way.




"bill (AT) sempf (DOT) net.nospam" <billsempfnetnospam (AT) discussions (DOT) microsoft.com> wrote
in message news06D241A-9F9F-4E87-82F0-A4C7F5EC6326 (AT) microsoft (DOT) com...

I am trying to transfer one SQL Server database into a new one. The old
one
supported nulls on every colum, and the new one, well, doesn't.

In order to use DTS, do I have to make every transformation a ActiveX
script
that checks for nulls and uses the default value for the column if it
finds
one in the sporce column? Or is there a global way to do that?

Thanks!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.