Hi All,
I have couple of Store Procedures in SQL Server.
Mostly a simple insert with selecting millions of rows from the base tables, and it is running daily in ware house.
How can i make this insert to work in batches, like dividing into chunks and then insert.
Select Many fields
from Mytable
Where createdWhen >=DATEADD(month, -24, GETDATE());
My querry looks something like this. and it is used to truncate and insert everyday.
Please help me on this
Dilip Patil..