Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Recently i got requirement as, to create backup or restore data from/to SQL database based on user criteria using ASP.Net MVC (.Net 4.5)application. Details are as below,

SQL Tables:

1. Employee

EmpID | Name | JoiningDate | DeptID

1001 | A | 11-JAN-2013 | 20
1002 | B | 12-JAN-2013 | 21
1003 | B | 17-JAN-2013 | 22

2. Department

DeptID | Name
20 | Dept1
21 | Dept2
22 | Dept3

i) I have to take data backup based on user criteria like "All employee details joined between certain date range" into external storage device?

ii) Need to restore the same data into sql.

It would be great, if anyone suggests me how to proceed for the solution?


Thanks
Mohan
Posted

1 solution

 
Share this answer
 
Comments
mohansa 17-Jan-13 3:47am    
@Shanu: Thanks.
I already gone through these articles and two are about taking complete database backup. But in my case, i have to take only partial data from database depends on user selected criteria as i mentioned in issue.
Shanu2rick 17-Jan-13 4:58am    
Okey, you mean the specific files?
mohansa 18-Jan-13 7:13am    
Yes.
Example: if the database has total of 1000 employee details, I need data backup of say only 300 employee details(data filtered based on criteria selection like date range).

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