Click here to Skip to main content
13,549,342 members
Rate this:
Please Sign up or sign in to vote.
See more:

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?

Posted 16-Jan-13 20:56pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180515.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100