I'm doing a bulk insert from a text file into a MS SQL database. My method is to read the entire line of each record of the text file into a one field 'temptable' (column name in that temp table is 'EligLine'). I then do an insert using SubStrings into the main folder (data is positional and not delimited). The problem I'm running into is that not ALL records have values in the ClaimantDOB position range. I'd like for these to be stored as 'NULL' in the main database table during the insert when they are blank.
Here's my INSERT Statement:
INSERT INTO TB1353Eligibility (ClaimNumber,ClaimantFN,ClaimantLN,DateLoss,ClaimantDOB,ClaimantSOJ,ClaimantSex,CovCode,Company,Office)
Let me know if more information is needed or if I need to explain my problem better.