Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Import Access table using DTS

Author  Topic 

Pinto
Aged Yak Warrior

590 Posts

Posted - 2007-02-12 : 10:19:02
I want to import an Access table into a SQL table. Some of the integer Access fields have a null value, but when they are imported I want them to be 0 or zero in my SQL table. How can I do this please ?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-12 : 10:24:26
You can make a derived/calculated column and use COALESCE(SourceColumnNameHere, 0)


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

Pinto
Aged Yak Warrior

590 Posts

Posted - 2007-02-12 : 10:27:22
Do I do this in the Transform part of the DTS
Go to Top of Page

Pinto
Aged Yak Warrior

590 Posts

Posted - 2007-02-12 : 10:55:05
I did it another way - I used an update query on any null fields after it was imported into Sql

Thanks for your suggestions
Go to Top of Page
   

- Advertisement -