多租户数据库:为单个tenat创建.bak文件
在我的应用程序中,我在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不运行ETL作业来提取租户的数据,或者从数据库的恢复副本中删除其他租户的数据,就无法执行此操作。
这是您应该使用每个租户架构的(许多)原因之一。
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.