Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to take sql server 2005 database backup through the asp.net windows application
I use c# as coding language
please help me and give code
Posted

This would be helpful to you:

SQL Server Database Backup Utility using VB.NET and SQL-DMO (New version)

SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]

You may have to make few changes to make it work as a web application but the above links have all the basic code and info.
 
Share this answer
 
v2
Just execute the following tsql on a SqlConnection

SQL
Backup database [database name] to disk='c:\backup.bak'
 
Share this answer
 
Hope this will help u lot : http://midnightprogrammer.net/post/BackupRestore-SQL-database-using-C.aspx[^] This is link of Application
 
Share this answer
 
v2

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