Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

SQL Bulk Update using Update query in SQL Table

$
0
0

Hello All,

I want to update data in sql table depends on some condition.
I am getting excel sheet from client and want to change value of field say Status = c.

Client is sending excel sheet with 300 field and want to change value for all 300 records with unique fields (field1 and field2) comming in that excel sheet...
How can i write and update records as Bulk.
Instaed updating one one recors ?

Example ( Update Table_Name Set Status = 'c' Where Field1 = Value from Excel for Field1 and
Field2 = Value from Excel for Field2 )

Same needs to do for 300 records...

Any help will wellcome.


Thanks,
Nilesh....


Thanks and Regards, Nilesh Thakur.



Viewing all articles
Browse latest Browse all 4729


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