Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

4 Posts

Posted - 07/22/2010 :  10:13:14  Show Profile  Reply with Quote
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


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
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000