| Posted by  srirangam.seshadri on 10/01/07 07:12 
Hi,I have a situation where I am loading data into a staging
 table for multiple data sources. My next step is to pick up the
 records from the staging table and compare with the data in the
 database and based on the certain conditions, decide whether to insert
 the data into the database or update an existing record in the
 database. I have to do this job as an sp and schedule it to run on the
 server as per the requirements. I thought that cursors are the only
 option in this situation. Can anyone suggest if there is any other way
 to achieve this in SQL 2005 please.
 
 Thanks
 
 Seshadri
  Navigation: [Reply to this message] |