Click here to Skip to main content
15,845,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to backup and restor some records of a table in sql database by C#?
(some records) I mean to select some record and make a backup file of that records.
then restor that records .
in restoring i preffer to click on file and automatically records backs up to the table of database.
thank you in advance.
Posted
Updated 11-Nov-14 18:42pm
v3
Comments
/\jmot 12-Nov-14 0:27am    
database backup and restore or few data from a table you want to restore??

1st one is possible(simple way) but the 2nd one you can't do it simply like the 1st one.
4L4K1 12-Nov-14 0:58am    
i know how to do 1st one.i want 2nd one.
/\jmot 12-Nov-14 1:07am    
use trigger after delete on Main_Table and save data to the deleted_backup table, and when you want to restore any data from deleted data,then get the data from the deleted_backup table and restore it to the Main_table.
i don't think there is any other way to do this.

1 solution

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