我们有一款产品利用多个带有触发器的SQL Server 2005数据库。我们正在寻找可持续的解决方案来部署和升级客户服务器上的数据库模式。SQL Server 2005多个数据库部署/升级软件建议
目前,我们正在使用Red Gate的SQL Packager,它似乎是这个特定工作的错误工具。 SQL Packager似乎不仅适用于单个数据库,而且我们拥有的特定(旧)版本在SQL Server 2005中存在一些问题。(我们的SQL Packager版本在SQL Server 2000中运行良好,即使我们必须做很多解决方法使它能够处理带触发器的多个数据库。)
有人可以建议一个产品可以创建一个EXE或.NET项目来执行以下操作吗?
* Create a main database with some default data.
* Create an audit trail database.
* Put triggers on the main database so audit data will automatically be inserted into the audit trail database.
* Create a secondary database that has nothing to do with the main database and audit trail database.
然后,当客户需要更新他们的数据库架构,该产品可以看看原来设置的数据库和更新的一组我们的服务器上的数据库之间的变化。然后,该产品可以创建一个EXE或.NET项目,该项目就可以了,客户的服务器上...
* Temporarily drop triggers on the main database so alterations can be made.
* Alter database schemas, triggers, stored procedures, etc. on any of the original databases, while leaving the customer's data alone.
* Put the triggers back on the main database.
基本上,我们正在寻找类似SQL打包一个产品,而是一个将轻松处理多个数据库。如果没有这样的产品存在,我们将不得不自己做。
在此先感谢您的建议!