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.
Author |
Topic |
carumuga
Posting Yak Master
174 Posts |
Posted - 2008-08-12 : 10:50:20
|
I have a column with the datetime datatype and trying to import the data from flatfile to sql server table. I'm getting the following error info.An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Invalid character value for cast specification."....I learnt in one of the blog that this could be reason probably where you have blank in the datefield column of flat file and the sql table can hold only NULL or valid date and it cannot accept blank.In short, the flat file has a blank value for the corresponding sql server datetime column.Pls. suggest if this is the known error, how to transform my data from flat file to sql server. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-12 : 13:18:33
|
If blank is your problem then use a derived column task and convert the blanks onto null values before loading it to sql table. |
 |
|
|
|
|