通过asp.net进行数据库备份(Windows应用程序) [英] database backup through asp.net(windows application)
本文介绍了通过asp.net进行数据库备份(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过asp.net Windows应用程序执行sql server 2005数据库备份
我使用c#作为编码语言
请帮助我并提供代码
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
推荐答案
这将对您有所帮助:
使用VB.NET和SQL-DMO(新版本)的SQL Server数据库备份实用程序
使用C#和.NET 2.0的SQL Server 2005数据库备份和还原 [
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.
只需在SqlConnection
Just execute the following tsql on aSqlConnection
Backup database [database name] to disk='c:\backup.bak'
希望这对您有帮助: ^ ]这是应用程序的链接
Hope this will help u lot : http://midnightprogrammer.net/post/BackupRestore-SQL-database-using-C.aspx[^] This is link of Application
这篇关于通过asp.net进行数据库备份(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文