从应用程序备份数据库(take backup of database from application)

   IT问题网   2020-06-29 00:00:00

问 题

大家好,



i在sqlserver 2005中有一个名为mydb的数据库

我在.net中创建了一个使用它的应用程序db



现在我想要备份这个数据库但是从前端意味着点击表格上的按钮...



(前端意味着来自visual studio 2008)我不想进入sql服务器然后进行备份.....我想从应用程序中获取它

解决方案

使用c#和.net 2.0进行sql server 2005数据库备份和还原 [ ^ ]

检查以下文章:



使用c#和.net 2进行sql server 2005数据库备份和还原。 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[ ^ ]



祝你好运!

标签:应用程序备份数据库



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

如何在客户端系统中维护我们的数据库(how to maintain our database in client system)

problem hello iam developing windows application and my ...

C#发送电子邮件SMTP问题(C# sending email SMTP problems)

problem dears i am using visual studio 2008 3 ...

需要帮助使用opengl在c ++中构建迷宫(Need help in building maze in c++ using opengl)

problem this is my code for solution path, i used random ...

使用文本框将一个选项卡值添加到另一个选项卡。(one tab value to another tab both using text box.)

problem how to assign one tab value to another tab if bot ...

使用WSAsy-Model的Win32套接字(Win32 Socket using WSAsy-Model)

problem hi !i want to use the wsaasyncselect ...

一次单击添加空白记录(one click add blank record)

problem dear sir, when was clicking edit link button ther ...

关于sql'列表的问题(the problem which is about listing of sql')

problem i want to get 3 datas which has been added lastly ...

DataGridView绑定源datacontext.ExecuteQuery allowusertoaddrows已禁用(DataGridView Binding Source datacontext.ExecuteQuery allowusertoaddrows disabled)

problem using the following code: iqueryable data = db.e ...

我想在每个页面上显示用户名(I want to display username on every page)

problem can i use loginview control without login control ...

解释如何重载.ToString()方法......(Explain how to overload .ToString() method...)

problem help me friends... :) thanks in advance... soluti ...

UserControl编辑对象(UserControl to edit an object)

problem hello, i have a usercontrol that has some fields ...

使用任何网络服务获取英国的邮政编码和地址(get postal code and address of UK using any web service)

problem hi, i have 2 text box. 1 for u.k. p ...

Windows 7的应用程序(application for windows 7)

problem do i need to install anything to program an app u ...

将控件添加到datagridview(add control to datagridview)

problem hi, there is a control called nbtext (which forma ...

多列和网格下拉列表(无自动完成)(dropdown with multicolumn and grid(no autocomplete))

problem i need a dropdown with multicolumn like the follo ...

如何创建oracle数据库DSN?(how to create oracle database DSN)

problem respected sir/mam i have a oracle database in my ...

获取dataTable中字符串的长度(get length of a string in dataTable)

problem hiii all i make a for loop on datatab ...

使用大型数据库(working with large databases)

problem hi, we use sql server 2008 database ...

数据列表中的CountDown计时器(CountDown timers in a datalist)

problem im developing a auction website where students fr ...

插入记录器的问题(problem in inserting recorod)

problem cmd = new sqlcommand("insert into login1 values" ...