I am getting the errors when my CSV file contains some fields as blank. At DB table these fields are allowed to keep null. But when WriteToServer of SqlBulkCopy executes it throws an error for the blank value that it cannot convert string to int or string to datetime.
How can we allow the blank values so that DB puts <NULL> for it?
The extract file is :
(int,int,int,datetime,int,int)
lot_type_fk,valid_on,status,modif_date,row_type,C001
3,20070401,5,,,997103
Sharing the best from my side...
--Prashant--
How can we allow the blank values so that DB puts <NULL> for it?
The extract file is :
(int,int,int,datetime,int,int)
lot_type_fk,valid_on,status,modif_date,row_type,C001
3,20070401,5,,,997103
Sharing the best from my side...
--Prashant--