• Register
Welcome to SQL Server Planet ASK!, where you can ask questions and receive answers from other members of the community.
Return to SQLServerPlanet.com

What is the right way to process table (1000000 rows) row-by-row

0 votes
Hi all,
Please suggest me what will be best way to processing 1000000 records  in following logic..

Begin Loop on Master Table
   Posting on Transaction File
   Begin Loop on Detail Table
      Posting on Transaction File   
   Loop
Loop
---------------------------------------------------
Posting Procedure on Transaction File
If record not exits in Transaction File
   Begin
      Insert New Record
   End
Else
  Begin
    Update Same records
  End

- Regrds
A Roy Chowdhury
asked Feb 3 in Transact SQL by anonymous

Your answer

Email me at this address if my answer is selected or commented on:
Privacy: Your email address will only be used for sending these notifications.