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

Update MSSQL with matching Data in CSV

$
0
0

I was hoping some of you MSSQL guru's could help me out. I've tried a variety of different google searched updates to my situation below but I think I"m missing something.

I have a table in my dbo.customer.logon database that is in need of updating.

I have a CSV file that is called newids.csv

In the csv there is 2 columns, custid and newcustid

I need to update all records in the customer.logon table where the custid = custid from the newid.csv file with the newcustid from the.csv file

We are changing a bunch of customer numbers and I hoped to not go manual for thousands of records.

Thanks for any help you can offer.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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