I need help :( i have a huge .txt file with more than 1 million records and ive already saved it into a sql server table the problem is that the file cames with spaces for example
id: 87936756 name: asduyiasdjk cel:8735434 bla:erwerwerwe sdsd:sdfsdfsdf
and each row cames with a different size of spaces i tried using SUBSTRING but it doesnt work because each row cames with a different size of spaces and i need to save each row in a different column of a table in SQL Server
what i did was save the hole txt file into a single column in sql server i created a table called data with only 1 row called COLUMN and it looks like this:
123123123 NTGAMMA GROUP S.A - - CR 43 sdfsdfsdf - 188 IN 708 sdfsdfsdf 23423423423 2234234 05 - *99991231*CONSTRUCCION DE EDIFICACIONES PARA USO RESIDENCIAL
That's only the first row of the table DATA and it has over a million rows so how can I save each part of that COLUMN in a new table like I have to save that in a table called test and it has some rows like name telephone bla bla bla
Does SQL have something like split so I could cut all those spaces and save each data in the rows I need of the table test?