I am having a desktop application which take the csv file and dump the data to the database.
At the Page Load there is table name in the combo-box
I browse the file and select the table name from combo-box and data get dump to appropriate table
It working fine
But the problem is in csv file, one column doesnot contain data(empty)
and that column in table is type date or datetime
It gives the following error
The given value of type from the datasource cannot be converted to type date of the specified target column
If m writing to one table then it would have not been the problem
But at run time am taking the table name due to which i cannot track which column can be empty
I am not getting
Is there any property related to sqlbulkcopy to allow null
I search but didnt get till now