从应用程序中备份数据库 [英] take backup of database from application
本文介绍了从应用程序中备份数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在SQLserver 2005中有一个名为mydb的数据库
我已经在.net中创建了一个使用此db
的应用程序
现在我想对该数据库进行备份,但是从前端开始意味着单击表格上的按钮...
(前端是指Visual Studio 2008中的前端)我不想进入SQL服务器然后进行备份.....我想从application
hi all,
i have a database named mydb in SQLserver 2005
and i have created an application in .net which uses this db
now i want to take the backup of this database but from front end means clicking on button which is on the form...
(front end means from visual studio 2008) i don''t want to go in SQL server and then take backup.....i want to take it from application
推荐答案
中获取它
使用C#和.NET 2.0的SQL Server 2005数据库备份和还原 [
检查以下内容文章:
使用C#和.NET 2.0的SQL Server 2005数据库备份和还原 [ http://www.softwarepassion.com/backup-your-ms-sql-server -with-c/ [ ^ ]check the following articles:
SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]
http://www.softwarepassion.com/backup-your-ms-sql-server-with-c/[^]
在这里看看是否存在相同的问题和答案:
http://stackoverflow.com/questions/728658/creating-sql-server-backup-file-bak-with-c-to-any-location [Take a look here for the same questions and answers on that:
http://stackoverflow.com/questions/728658/creating-sql-server-backup-file-bak-with-c-to-any-location[^]
Good luck!
这篇关于从应用程序中备份数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文