Click here to Skip to main content
12,693,693 members (34,786 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# database Backup
I already posted my problem related to backup and restore database from backup file, But all in vain. My problem don't get solved.

So can anybody give me some sample application (link) which can create backup of the database and then cable of restoring it.
So that i can it's coding try to implement same in my application.

I am using C#, Visual Studio 2010, it's inbuilt SQL database(MDF).
Posted 3-Oct-12 6:09am
Updated 3-Oct-12 6:31am
n.podbielski 3-Oct-12 11:40am
I think that this possible to achieve like in most DB engines from command line.

1 solution

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

Solution 1

Take a look at this post which is one of the million posts in this regard:
SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]

Hope it helps,


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 | Mobile
Web01 | 2.8.170118.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2017
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