gpt4 book ai didi

sql-server - 使用SMO .net通过DeviceType.Pipe进行备份和恢复

转载 作者:行者123 更新时间:2023-12-02 23:29:42 24 4
gpt4 key购买 nike

我编写了一个使用 .net 上的 SMO 库备份 SQL 数据库的程序,一切都很顺利,我只有最后一点,我正在更改将 .bak 文件保存在硬盘上的方式,从DeviceType.File 到 DeviceType.Pipe,以前用过管道,只是不知道这里怎么实现。

最佳答案

我认为 PIPE 备份设备在 SQL Server 2005 及更高版本中不可用。

来自sys.backup_devices ,管道已过时。当然,我可能是错的,而且我从未使用过管道备份(甚至回到我的 SQL Server 6.5 天)

编辑,确定找到了...

此处第一个条目:Discontinued Database Engine Functionality in SQL Server 2005

Discontinued feature = Named pipe backup devices

With comment"For security reasons, SQL Server does not support backup to named pipes."

那么为什么它仍然列在 DeviceType 中枚举?

关于sql-server - 使用SMO .net通过DeviceType.Pipe进行备份和恢复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1994344/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com