如何强制VS2008“生成创建脚本到项目”当选择多个存储过程时到多个文件?

发布于 2024-08-06 17:08:17 字数 214 浏览 3 评论 0原文

我正在使用 Visual Studio 2008 Developer Edition,并且创建了一个数据库项目,并希望从我的数据库生成 CREATE 脚本并将它们保存在我的数据库项目中。

当我在数据库中选择单个存储过程并单击“生成创建脚本到项目”时,它工作得很好。问题是,当我选择“多个进程”时 - 它将脚本输出到单个文件中。

有没有办法强制输出到多个文件(每个存储过程一个文件)?

I'm using Visual Studio 2008 Developer Edition and I've created a Database Project and want to generate CREATE scripts from my database and save them in my database project.

It works just fine when I select a single stored procedure in the Database and click "Generate Create Script to Project". The problem is that when I select MULTIPLE PROCS - it outputs the script into the single file.

Is there a way to force the output into the multiple files (one file per stored procedure)?

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

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

发布评论

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

评论(1

别在捏我脸啦 2024-08-13 17:08:17

Microsoft 的数据库发布向导 将为过程生成创建脚本。我工作时没有安装 SQL Server,所以我无法确认这一点,但我认为您可以生成多个文件。

如果我没记错的话,从“开始”菜单运行此应用程序时的用户界面与从 Visual Studio 的服务器资源管理器中运行它时的用户界面略有不同。

Microsoft's Database Publishing Wizard will generate create scripts for procedures. I don't have SQL Server installed here at work so I can't confirm this, but I think you can generate multiple files.

If I remember correctly, the user interface is a little different when you run this application from the Start menu than when you run it from within Visual Studio's Server Explorer.

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