DB Pro(数据家伙)和 Wix3 SqlExtension

发布于 2024-07-10 03:55:22 字数 410 浏览 6 评论 0原文

我试图在安装过程中使用 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 技术交流群。

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

发布评论

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

评论(2

懵少女 2024-07-17 03:55:22

如果您使用 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.

沫雨熙 2024-07-17 03:55:22

有一篇博客文章介绍了从 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

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