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

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 XML insert and update SP

Author  Topic 

sri189
Starting Member

4 Posts

Posted - 2010-07-22 : 10:13:14
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 - 2010-08-18 : 16:58:16
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
   

- Advertisement -