Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Import .csv to SQL 2012 and SQL 2008

$
0
0

I have a trying to import a .csv that has four columns, like below:

Column 1 is ID

Column 2 is states it current 

Column 3 is email address

Column 4 is updated date

I have tried to import it buy continues to error.

I need a script that will look for column 1 and update the email address and updated date.

If it does not have a column 1 in the table to created it with all four.  

I am new to sql so any help is appreciated. 


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>