Bulk Insert - How to represent nulls in .txt input file?
From: Sean (none)
Date: 08/25/04
- Next message: Joey D: "Tricky one. DTS and Strip Tags from csv file"
- Previous message: Darren Green: "Re: Current System as Global Variable"
- Next in thread: Sean: "Re: Bulk Insert - How to represent nulls in .txt input file?"
- Reply: Sean: "Re: Bulk Insert - How to represent nulls in .txt input file?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 12:12:22 -0400
I have a table that I'm loading via .txt file input.
One of the columns has a datatype of datetime. It does allow nulls
which I've checked by simply adding 1 record via enterprise manager
with no value in the field.
When I execute the DTS package, I get "conversion error: Conversion
invalid for datatypes on ...."
This is a comma delimited file with Quotes (") surrounding the values.
I've tried no values ,"",
Blank ," ",
/N ,"/N"
<NULL> ,"<NULL>"
and all of them give me the same conversion error. I'm about to give
up and just pass some bogus date off in the future but there must be a
way to pass a null to a datetime field that allows nulls.
Any help for this newbie appreciated.
- Next message: Joey D: "Tricky one. DTS and Strip Tags from csv file"
- Previous message: Darren Green: "Re: Current System as Global Variable"
- Next in thread: Sean: "Re: Bulk Insert - How to represent nulls in .txt input file?"
- Reply: Sean: "Re: Bulk Insert - How to represent nulls in .txt input file?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|