Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I want to implement Backup and Restore functionality for the user where they can take Backup of Certain data from the certain table and then they can restore it. I am working in desktop application in vb.net.

Give you a scenario I have One Company Table in that Company id is primary Key and it is used as foreign key in other tables (around 40 tables)
I want to take backup Company wise (in this case Company id wise say if company id = 1 then need data from all the tables where company id is associated with as foreign key) and then restore those data again when user needed.

So I wanted to know that what is the best option to do this ? I also have performance concern also if data is to large then through which option we can go with? Kindly give your input in this.

Note: I read some article that we can do with xml , csv, through script and also I don’t know through other option we can do this.
Posted
Updated 15-Nov-15 20:53pm
v2
Comments
Tomas Takac 16-Nov-15 2:25am    
I think you approach this from a wrong end. I mean you are focusing on how to serialize the data. The logic to retrieve the data to store in a backup and then to overwrite the existing data with the data from backup is more important. To serialize the data for now put it in a dataset and serialize it to XML[^].

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