Ok Lars..
Can you suggest me on how to use the table variables and tell me how i can come out of memory issues which i am facing now.
Suggest me the best approach to follow to handle the huge amount of data without having memory issues or performance issues.