DB Pro(数据家伙)和 Wix3 SqlExtension
我试图在安装过程中使用 Wix 创建数据库。 我使用 Db Pro Visual Studio SKU(有时称为 Data Dude)设置数据库。 但是,输出似乎只能由 sqlcmd.exe 使用,因为它在其中使用特定语法(诸如 :setenv
和 $(FOO)
等变量引用)。
我正在尝试使用 wix sqlextension ,它显然没有使用 sqlcmd.exe (我还没有调查它正在使用什么数据访问技术。
有谁知道是否有一种方法可以在本地使用数据家伙的输出wix sqlextension 或者是否有什么东西可以获取 sqlcmd 输出并将其转换为针对 sql 服务器执行所需的运行时 sql?
请注意,最终目标是将 wix 完全集成到我们的构建系统中,所以我正在寻找一种自动化的方法。
I'm attempting to use Wix to create a database during install. I have my database setup with the Db Pro Visual Studio SKU (Data Dude as it's sometimes referred). However, the output seems to be only consumable by sqlcmd.exe since it uses specific syntax in it (variable references like :setenv
and $(FOO)
).
I'm trying to use the wix sqlextension which apparently isn't using sqlcmd.exe (I haven't investigated what data access technology it's using just yet.
Does anyone know if there is a way to use the output of data dude natively in the wix sqlextension or alternately if there is something that will take the sqlcmd output and translate it into the runtime sql needed to execute against the sql server?
Please note that the ultimate goal is to fully integrate wix into our build system so I am looking for an automated approach.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 Visual Studio DBPro 创建了包,则最好使用 VSDBCMD.exe 进行数据库部署。 这样做的好处是,VSDBCMD.exe 始终能够找出目标与源的差异,并创建一个可以从同一命令行运行的增量脚本。 您只需要提供/action:Deploy。
If you have created the package using Visual Studio DBPro it is best to use VSDBCMD.exe for the DB deployment. The benefits of this is that the VSDBCMD.exe always figures out the differential of the destination to the source and creates a delta script which can be run from the same command line. You just need to provide /action:Deploy.
有一篇博客文章介绍了从 WiX 3 调用 sqlcmd.exe 实用程序,网址为 http://neilsleightholm.blogspot.com/2008/08/executing-sqlcmd-from-wix.html
There is a blog post that covers calling the sqlcmd.exe utility from WiX 3 at http://neilsleightholm.blogspot.com/2008/08/executing-sqlcmd-from-wix.html