数据库项目的后期构建

发布于 2024-07-30 04:30:17 字数 154 浏览 3 评论 0原文

在 Visual Studio 2008 中,我有这个数据库项目来管理我的 SQL Server 2008 数据库。 它有一个预构建和后构建 SQL 脚本,其中包含如下示例:

:r .\myfile.sql

这是什么意思?

In Visual Studio 2008, I have this database project to manage my SQL Server 2008 database. This has a prebuild and postbuild SQL Script that contains an example like this:

:r .\myfile.sql

What does this mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

负佳期 2024-08-06 04:30:17

您的谷歌搜索中缺少的关键字是“sqlcmd”。

“r”命令用于包含该位置另一个 SQL 文件的内容; 传入的参数是被包含文件的相对文件路径。

有关详细信息,请参阅有关 sqlcmd 语法的 MSDN 文档

The keyword missing from your google search was "sqlcmd".

The "r" command is used to include the contents of another SQL file at that location; the parameter passed in is the relative file path of the included file.

See MSDN docs for sqlcmd syntax for more information.

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