views:

33

answers:

2

I am inserting data into SQL 2005 using SQLXMLBulkLoad.SQLXMLBulkload.3.0

My data table has following column: objDataTable.Columns.Add("TaskDateTime", System.Type.GetType("System.DateTime"))

My bulk insert schema has following definition: <xsd:element name="DepartureTime" type="xsd:date" /> (Using xmlns:xsd="http://www.w3.org/2001/XMLSchema")

And I am getting 'Invalid character value for cast specification' exception.

Any advice?

A: 

The problem is blanks in the source columns........ this is what is causing the invalid character value for cast specification.

subhash