Click here to Skip to main content
15,888,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I want to store some data temporary in a table & copy the same at the end when entry become Save i.e In Billing Invoice want to store some data in "Tmp" table like all Sale item details (Item Code, Quantity,Rat & amount)when the invoice entry become complete insert the same data in another table Sale & then Tmp become empty.

Pl explain with example.

Regards,

Jatinder Gupta.
Posted

You should create a class or structure in your client code to store the temporary information until you want to save it to the database.
 
Share this answer
 
v2
Comments
Simon_Whale 9-Aug-10 9:10am    
Andy's answer is a great light weight answer but depending on how your storing this data another source to look into is datatable.copy
Simon_Whale 9-Aug-10 9:11am    
Reason for my vote of 5
a simple way and how i'd do it personally
you can create one dummy table which actually can store the values. when you finish all run time opraation you can copy all the content to your respective table & then you can delete all the content from dummy table.
this can done through one stored procedure.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900