all groups > sql server dts > october 2004 >
You're in the

sql server dts

group:

Ignore NULL Values or Map NULL Values in DTS


Re: Ignore NULL Values or Map NULL Values in DTS Allan Mitchell
10/20/2004 8:55:41 PM
sql server dts:
Why not do that as a SourceSQLStatement instead of specifying the tablename
as the Source ?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


[quoted text, click to view]

Ignore NULL Values or Map NULL Values in DTS Martin Schmeller
10/20/2004 9:41:47 PM
Hi all,

I want to import Data from my ACCESS Mdb (NULL allowed) to my new SQLServer
2000 Database (NULLs NOT allowed).
The problem is that wenn my DTS-Packages is running I get an error that NULL
Values can't be inserted in my table.
Where can I place a Function or Script or something to convert the NULL
Values from my Access tables to Defaults in my SQLServer Tables?

Greetings

Martin

Re: Ignore NULL Values or Map NULL Values in DTS Martin Schmeller
10/21/2004 2:37:37 PM
Hi Allan,

thank you for answering!

you mean i should use IIF in an JET-SQL-Statement for the
OLEDB-Access-Source-Connection?
Something like this:
SELECT Number, IIF(ISNULL(Searchword),'',Searchword) AS Searchword,
IIF(ISNULL(Version),'',Version) AS Version FROM Version

to avoid NULL-Values to be inserted in my SQLServer-Dest.-Database!?

Greez

Martin



"Allan Mitchell" <allan@no-spam.sqldts.com> schrieb im Newsbeitrag
news:OOEBR6ttEHA.1176@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button