.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Sql Bulk Insert/Update

Posted By: DipaliKolhe     Posted Date: April 20, 2011    Points:5   Category :Sql Server
I have a datatable. I want to perform a Bulk update in such a way that
If Record is present in a table then it should be updated else a new row should be inserted. Is there any best way to do this in one shot. .

Responses
Author: Arul             
Posted Date: April 21, 2011     Points: 20   

yes. you can achieve this by passing datatable as xml to stored procedure.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend