Hi all,
I am parsing a relatively large text file, and I need to split the information into various fields, and then insert the parsed data into a database.
At the moment, I have the parsing bit working fine, and I create an array to temporarily hold all the information - this is a 2-dimension array of 10 columns and about 150,000 rows (although this can vary).
Whats the easiest way for me to insert the data into the database (at the moment I am using sql server compact)? I am hoping that I dont have to loop through the array, and that I can do some kind of bulk insert.
I'm (very) new to vb (coming from a vba background though), so please go easy on me! With VBA, I would probably use an ADO recordset, but I am guessing (wildly!) that some form of SqlCeResultset may be needed in this case - am I at least on the right track?
Specs:
Windows XP
Visual Basic express 2008
Sql Server Compact 3.5
Thanks in advance.
I am parsing a relatively large text file, and I need to split the information into various fields, and then insert the parsed data into a database.
At the moment, I have the parsing bit working fine, and I create an array to temporarily hold all the information - this is a 2-dimension array of 10 columns and about 150,000 rows (although this can vary).
Whats the easiest way for me to insert the data into the database (at the moment I am using sql server compact)? I am hoping that I dont have to loop through the array, and that I can do some kind of bulk insert.
I'm (very) new to vb (coming from a vba background though), so please go easy on me! With VBA, I would probably use an ADO recordset, but I am guessing (wildly!) that some form of SqlCeResultset may be needed in this case - am I at least on the right track?
Specs:
Windows XP
Visual Basic express 2008
Sql Server Compact 3.5
Thanks in advance.