Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Please someone help me.
I need to upload excel data's to database, but before uploading need to check whether it is insertion or updation. This i need to check for each and every rows.
Kindly share me some tutorials...

Thanks
Priyanka
Posted

1 solution

The term used for either INSERT or UPDATE depending on the existing rows is UPSERT.

There are quite a lot of examples concerning how to upsert data from Excel. For example have a look at this: http://stackoverflow.com/questions/22273071/upsert-into-sql-server-from-an-excel-file[^]
 
Share this answer
 
Comments
Priyanka Sundaraj 22-Jul-14 3:22am    
Thanks A lot for your suggestion.
Wendelius 22-Jul-14 3:34am    
You're welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900