使用 SQL Server Management Studio 打开驻留在 App_Data 中的 mdf 文件?

发布于 2024-10-03 13:00:43 字数 189 浏览 0 评论 0原文

是否有一种一键式方法可以使用 SQL Server Mangement Studio 2008 R2 打开 Visual Studio 2010 中当前编辑项目的 App_Data 中的 mdf 文件?

更新:

我也在寻找相反的方法,我想将生成的 SQL 脚本执行到作为 mdf 文件驻留在本地 App_Data 文件夹中的数据库。

Is there a one-click way to open an mdf file that resides in the App_Data of the current editing project in Visual Studio 2010 with SQL Server Mangement Studio 2008 R2?

UPDATE:

I am also looking for the opposite way, where I want to execute a generated SQL script to a database that resides as an mdf file in the local App_Data folder.

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

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

发布评论

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

评论(1

痴情换悲伤 2024-10-10 13:00:43

不,没有一键式方法,因为 SQL Server 不允许在附加到 SQL 引擎时共享 mdf。

No there is not a one click way as SQL Server does not allow mdf to be shared when it is attached to the SQL Engine.

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