Question : How to allow zero-length string values and file size question

Hi Rob,
Thank you for your reply.

I have discovered a current issue, not all of the Field names will have values.
The field name will be there but without a value after the = sign in some cases.
Currently there is an error generated (cannot be a zero-length string) if a fields value is blank.
How do I avoid this issue?

My new question is how to map the fields as the table field names in some cases are different from the name you are collecting as strField from the text file.
Would the best way be to put in a table and then do an Append Query?

And also I need you to know that there are 241 lines we are reading from this text file into 241 fields in the table should that make a difference in the way this is handled.

I set up a test table and your solution worked right off. Now I am trying to get it to work with the full file and have a problem I am currently trying to locate.

Thank you

Answer : How to allow zero-length string values and file size question

You can create a unique index against the two columns. In SSMS, open up the design of your table. Right click in the design tab and select Indexes/Keys. Click the Add button and in the Columns row, either type in your columns or use the "more" button (the ellipse) to view the Index Columns window.
Random Solutions  
 
programming4us programming4us