如何将备份数据库形式的服务器带到客户端PC? [英] How to take backup database form server to client PC?

查看:211
本文介绍了如何将备份数据库形式的服务器带到客户端PC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我想从服务器PC到客户端PC进行数据库备份.
我可以将其保存到服务器PC中.但是我无法将其保存到客户端计算机中
有需要帮助的人吗?
我正在使用asp.net,c#
这是我的数据库备份代码


I want to take database backup from server pc to client pc.
I can save it into server pc. But I can’t not save it into client pc
Is there any one for help?
I am using asp.net ,c#
Here is my db backup code

//string Msg = null;
        //string FileName = "E:\\Standard.bak"; // database name
        SQL code: BACKUP DATABASE  standard  TO DISK = '" + FileName + "' ITH FORMAT");



我将在asp.net Web应用程序中使用它

在此先感谢
Rashed



I will use it in asp.net web application

Thanks in advance
Rashed

推荐答案

备份到磁盘后,必须将生成的文件传输到客户端.您为什么要在世界上做类似的事情?
After you back it up to disk, you have to transfer that resulting file to the client. Why in the world would you want to do something like that?


此MSDN文章
This MSDN article Backup Devices[^] has a section called Backing Up to a File on a Network Share.
It talks about using an UNC name for the back-up destination.

You might want to read it and see if you can use it in your situation.


这篇关于如何将备份数据库形式的服务器带到客户端PC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆