多租户数据库:为单个tenat创建.bak文件

发布于 2025-01-27 11:12:55 字数 156 浏览 5 评论 0原文

在我的应用程序中,我在SQL Server数据库中使用多租户设计。

我的问题是:如果我的一个客户来了说,我希望自己的数据作为备份文件,如何为该租户创建备份文件?

有什么方法可以做到吗?

我需要任何第三方工具吗?我可以在.NET控制台应用程序中执行此操作吗?

In my application I use multi tenant design in my SQL Server database.

My question is: what if one of my customer comes and say, I want my own data as a backup file, how can I create backup file for just that tenant?

Is there is any way to do that?

Do I need any 3rd party tool? Can I do this in a .NET console application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转角预定愛 2025-02-03 11:12:55

如何仅为该租户创建备份文件?

如果不运行ETL作业来提取租户的数据,或者从数据库的恢复副本中删除其他租户的数据,就无法执行此操作。

这是您应该使用每个租户架构的(许多)原​​因之一。

how can I create backup file for just that tenant?

There is no way to do this without running an ETL job either to extract the tenant's data, or to remove the other tenants' data from a restored copy of the database.

This is one of the (many) reasons why you should favor using a database-per-tenant architecture.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文