Click here to Skip to main content
11,645,889 members (77,363 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET MVC

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 at 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 at 17-Jan-13 4:58am
Okey, you mean the specific files?
mohansa at 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
0 OriginalGriff 523
1 514
2 Sergey Alexandrovich Kryukov 503
3 Afzaal Ahmad Zeeshan 368
4 F-ES Sitecore 279
0 OriginalGriff 1,143
1 994
2 Sergey Alexandrovich Kryukov 808
3 Afzaal Ahmad Zeeshan 702
4 DamithSL 691

Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2015
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