简体   繁体   English

SQL Server VDI备份

[英]SQL Server VDI Backup

My application should do backup of SQL Server 2008 R2 data. 我的应用程序应该备份SQL Server 2008 R2数据。 It works fine when app is on server. 当应用程序在服务器上时,它工作正常。 When I get app to client PC and connect to Server, server cannot find path... 当我将应用程序连接到客户端PC并连接到服务器时,服务器找不到路径...

So I decide to use VDI for Backup, find this page http://www.codeproject.com/Articles/19449/Accessing-the-SQL-Server-Virtual-Device-Interface and after some changes, it works fine on local PC. 因此,我决定使用VDI进行备份,请找到此页面http://www.codeproject.com/Articles/19449/Accessing-the-SQL-Server-Virtual-Device-Interface,并进行一些更改后,它在本地PC上可以正常工作。 But when I try to backup on server-client. 但是当我尝试在服务器客户端上备份时。 I cant make VirtualDevice on server. 我无法在服务器上制作VirtualDevice。

It looks like I need to set VDI server address to create VirtualDevice on server. 看来我需要设置VDI服务器地址才能在服务器上创建VirtualDevice。 After that I will be able to use stream to server. 之后,我将能够使用流到服务器。

Does anyone have solution? 有人有解决方案吗? That c++ code is strange to me. 那个c ++代码对我来说很奇怪。

Or if there is another possibility how to make C# app backup database on remote server without using sharedFolder? 或者,如果还有另一种可能,如何在不使用sharedFolder的情况下在远程服务器上制作C#应用程序备份数据库?

Thanks, Jakub 谢谢,雅各布

No matter where your drive is or what your drive is [Virtual/Physical] where you want to take a backup. 无论您的驱动器在哪里,或者您的驱动器在[虚拟/物理]位置,都想在其中进行备份。 As long as it is shared you will be able to take a backup there. 只要共享,您就可以在那里进行备份。

Say you have a ClientPC and You have shared a folder P:\\Backup . 假设您有一台ClientPC,并且共享了一个文件夹P:\\Backup Now when taking backup you will use the UNC path something like this.... 现在,在进行备份时,您将使用类似以下的UNC路径...。

BACKUP DATABASE [Test_DB] 
  TO  DISK = N'\\ClientPC\Backup\BackupFile.bak' 

This question is about VDI (virtual device interface) which is a way to stream the backups to his software - ie it won't use a network share nor a local file - it will stream to his code instead. 这个问题是关于VDI(虚拟设备接口)的,这是一种将备份流式传输到他的软件的方法-即它既不使用网络共享也不使用本地文件-而是流式传输到他的代码。

I do know you need to be in the sysadmin role to run VDI, however I'm not sure of more information about the exact requirements - I was curious about if something could be done via VDI and ran across this post in researching it. 我确实知道您需要具有sysadmin角色才能运行VDI,但是我不确定有关确切要求的更多信息-我很好奇是否可以通过VDI进行某些工作,并在这篇文章中进行了研究。

Good luck.. 祝好运..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM