简体   繁体   English

从SSDT项目(VS2013 / TFS2012 [MSBuild])生成SQL脚本,以用于InstallShield 2013 Pro

[英]Generate SQL Scripts from SSDT project (VS2013 / TFS2012 [MSBuild]) for use in InstallShield 2013 Pro

We are using Visual Studio 2013 with SQL Server Data Tools (SSDT) to develop our database projects. 我们正在将Visual Studio 2013与SQL Server数据工具(SSDT)一起使用来开发我们的数据库项目。 When TFS builds the database project, the "_Create.sql" file generated requires SQLCMD mode and contains variables. 当TFS生成数据库项目时,生成的“ _Create.sql”文件需要SQLCMD模式并包含变量。 InstallShield 2013 does not appear to support SQLCMD mode (investigation points to InstallShield using ODBC and/or OLEDB drivers to execute SQL scripts). InstallShield 2013似乎不支持SQLCMD模式(调查指向使用ODBC和/或OLEDB驱动程序执行SQL脚本的InstallShield)。

Essentially, I need our TFS build process to create a "standard" SQL script, compatible with InstallShield 2013 Professional. 本质上,我需要我们的TFS构建过程来创建与InstallShield 2013 Professional兼容的“标准” SQL脚本。 Has anybody had any experience with this... and if so, please can you provide some pointers? 有人对此有任何经验吗?如果是,请提供一些建议吗?

Thanks. 谢谢。

您不仅可以在installshield中创建一个步骤来调用sqlcmd.exe甚至更好的sqlpackage.exe并传入dacpac吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM