Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to backup and restore mssql database. I will use asp.net C#. At first I will login into the project. There is a DB backup and restore UI. Then I will take a backup the current database from remote database server into my local pc. After that I will restore it.
Is there any one to help me?I need the c# and SQL code.

Thanks in advance.
Posted

1 solution

Did you try searching? If so, you would have found this: SQL Server Database Backup Utility using VB.NET and SQL-DMO (New version)[^].

Shouldn't be too hard to convert to c# if you really need to.
 
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