I have some data in a (poorly) delimited state that I've managed to turn into a CSV for further parsing.
I've managed to alter it such that's it's in the format:
"Timestamp", "ServerName", "ProcessName", Column4=Data4, Column5=Data5,... Column25=Data25
In practice this might look like:
12:34:23, MyServerName, MyProcess, Type=10, Price=45.4, ProductType=AV
21:23:17, MyServerName2, MyProcess2, Type=10, ProductType=AV, ClassKey=2324
I have two problems that I could use some help solving. The first is Parsing the data so that "Type=10" becomes a "Type" column header and that row takes the value "10" when I upload it to a MS SQL Server database. The second issue is that my columns aren't in consistent locations in my CSV. It sounds like I'll have to make an array of key:value pairs, but I'm uncertain how to do that, or if it's the best way. Can anyone offer some insight on what tools/methods would be best to go about this?