Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET MVC
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 16-Jan-13 21:56pm
mohansa389

1 solution

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

Solution 1

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 504
1 Maciej Los 349
2 Kornfeld Eliyahu Peter 325
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2014
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