Skip to content
Advertisement

Insert .csv file to SQL Server using OpenRowSet

I have a .csv file, called File1 that I would like insert into my already existing table, called Table1 within SQL Server. The .csv file has the following structure and values:

My table within SQL server has the same structure:

I wish for output to look like the value below, I wish for the date to be in order as well.

I am doing this:

I am still researching to see what it is I am doing wrong with the above command. Any suggestion is appreciated

Advertisement

Answer

hope this helps:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement