srajeevkumar
IS-IT--Management
Hello,
I am trying to import from a flat file into a database table using DTS. Two fields in my table does not allow nulls and are of Varchar datatype and default values have been set as '' for these two filed types.
Now when I choose the source to be a text file having 12 columns delimited by a comma. The DTS automatically converts those colums with no data ( For eg:- ,,) into Null. And since the two fields dont allow nulls , it fails on DTS execution. How can I not allow the DTS to convert the Empty ( ,,) to Nulls before reading from the text file.
I am really stuck with this.
Please do helpp meee.
Rgds
Rajeev
I am trying to import from a flat file into a database table using DTS. Two fields in my table does not allow nulls and are of Varchar datatype and default values have been set as '' for these two filed types.
Now when I choose the source to be a text file having 12 columns delimited by a comma. The DTS automatically converts those colums with no data ( For eg:- ,,) into Null. And since the two fields dont allow nulls , it fails on DTS execution. How can I not allow the DTS to convert the Empty ( ,,) to Nulls before reading from the text file.
I am really stuck with this.
Please do helpp meee.
Rgds
Rajeev