Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Updated 3-Oct-12 5:31am
v2
Comments
[no name] 3-Oct-12 11:30am    
Search for backup and restore queries in Google.
Then you can execute them in your application.
n.podbielski 3-Oct-12 11:40am    
I think that this possible to achieve like in most DB engines from command line.

1 solution

Hi,
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,

Cheers
 
Share this answer
 

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