I have a C# project where I am trying to autofill a SQL table with a file downloaded from the net.
The file is http://ts1.travian.com/map.sql and you will see that it has data already set for SQL database manipulations.
Here's a little snipet of how they look:
INSERT INTO `x_world`
VALUES (1517,315,399,3,181705,'New Remial',82126,'Tale',0,'',273);
INSERT INTO `x_world`
VALUES (67792,107,316,1,175829,'3.Clay',35440,'salvaje_jabali',0,'',244);
INSERT INTO `x_world`
VALUES (32790,349,360,1,189271,'Lumeria',9702,'Aquifel',90,'APE',20);
INSERT INTO `x_world`
VALUES (72449,-42,310,1,194313,'New village',2634,'paloc',0,'',24);
INSERT INTO `x_world`
VALUES (75669,-26,306,1,170802,'Yao Ming',2634,'paloc',0,'',330);
I've inserted a break line before each INSERT code for readability.
I have recreated the Table in my project with all the required columns but how can I have the project download the file on the click of a Button (named CommandButton1) and then parse all of that data into the required columns in the table in my project (the data in the downloaded file is separated by a comma it seems all the way through).