寻找对 SQL Server 数据库进行版本控制的好方法
我的软件有多个版本,我需要随时运行。我们在每个版本中都有每个客户数据的副本,这是一个数据库。我正在尝试找到一种在 SQL Server 中完成此任务的好方法。
起初,我考虑将所有内容都集中在一个 SQL Server 实例中,并将版本号添加到数据库名称的末尾。然而,这是一个痛苦,因为每次更改版本时,我都必须不断更改我的软件为每个客户端访问的数据库。
我正在考虑为每个版本使用 SQL Server 的 multilpe 实例。然后我所要做的就是更改我的软件访问的实例。
这是一个好方法吗?有人对数据库版本控制有更好的想法吗?
I have multilpe versions of my software that I need to run at any moment. We have a copy of each of our client's data in each version, which is a database. I am trying to find a good way to accomplish this in SQL Server.
At first I was thinking of having everything in one once instance of SQL Server and tacking the version# on the end of the database name. However, this is a pain because I have to constantly change the database that my software is accessing for each client everytime I change a version.
I am instead considering using multilpe instances of SQL Server for each version. Then all I would have to do is change the instance my software accesses.
Is this a good approach. Does anyone have any better ideas for versioning databases?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每个客户的数据库比每个客户的实例更容易(而且更便宜)。我将它们标记为“YourDb.ClientName”,而不是版本。这可能比记住哪个客户的版本为 12.31.79 更容易,并且由于您的数据库包含客户数据,因此不应存在具有相同版本的客户。
A database per customer is easier (and cheaper) than an instance per customer. Rather than version, I'd label them "YourDb.ClientName". That might be easier than remembering which customer has version 12.31.79, and since your database includes the customer data, there should be no customers with the same version.