Hello all,
I'm still learning about c# and I have a major function that I need to write (in a forms application), and I have no idea how to go about it. Here's the scenario:
I have a text file that contains all the data needed for a database table (MS SQL Server). I know the location and length of each field within the text file.
Can anyone explain to me (I know it may be quite involved) how I can read the text file, pull out the fields I need and place the data in a sql table?
length of each line is fixed, position of field is fixed. there will be N' number of line. each line is a record . each word in a line is a column value.
If you can help I will greatly appreciate it.
Thanks,
Sunil.
I'm still learning about c# and I have a major function that I need to write (in a forms application), and I have no idea how to go about it. Here's the scenario:
I have a text file that contains all the data needed for a database table (MS SQL Server). I know the location and length of each field within the text file.
Can anyone explain to me (I know it may be quite involved) how I can read the text file, pull out the fields I need and place the data in a sql table?
length of each line is fixed, position of field is fixed. there will be N' number of line. each line is a record . each word in a line is a column value.
If you can help I will greatly appreciate it.
Thanks,
Sunil.
Comment