SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 XML insert and update SP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sri189
Starting Member

India
4 Posts

Posted - 07/22/2010 :  10:13:14  Show Profile  Reply with Quote
Hi,
I have to write an SP which will take an xml as input i have to go thro' each row of the file and check if the data already exists if it exists thn i need to do an update else i need to inert the data. pls help me on how to go abt this
thanks in advance

sri

MSquared
Yak Posting Veteran

52 Posts

Posted - 08/18/2010 :  16:58:16  Show Profile  Reply with Quote
Put the XML into a temp table and then use upsert logic

For Faster results please follow the posting guidelines here

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000