p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   SQL Server 2005 (http://p2p.wrox.com/forumdisplay.php?f=220)
-   -   Error - Loading date field from flat file to sql (http://p2p.wrox.com/showthread.php?t=70023)

carumuga August 12th, 2008 09:55 AM

Error - Loading date field from flat file to sql

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.


All times are GMT -4. The time now is 07:21 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.