架构比较失败,SQL Server 2008 R2 & VS2010 Premium 出现超时已过期错误

发布于 2024-09-13 14:23:44 字数 485 浏览 2 评论 0原文

我有一个从 VS2008 迁移而来的 VS2010 DB 项目,并创建了几个架构比较。

我收到以下错误:

错误 1 ​​尝试对 Microsoft.Data.Schema.Sql.SchemaModel.ISqlUser 类型的元素进行逆向工程时从 SQL Server 收到错误:超时已过期。操作完成之前超时时间已过,或者服务器没有响应。

错误 2 ExecuteReader 需要一个打开且可用的连接。连接的当前状态已关闭。

我在我的开发计算机上使用 VS2010 Premium 和 SQL Server 20008 R2。
我的数据库托管在 SQL Server 的本地实例上。
当我使用与远程服务器相同的架构比较并使用 sa 登录时,它可以工作。在我的开发机器上,我也尝试使用 sa 登录。但没有运气!

有没有人遇到过这样的问题并且能够解决?

I have a VS2010 DB Project migrated form VS2008 and a couple of schema comparisons created.

I get the following error:

Error 1 An error was received from SQL Server while attempting to reverse engineer elements of type Microsoft.Data.Schema.Sql.SchemaModel.ISqlUser: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Error 2 ExecuteReader requires an open and available Connection. The connection's current state is closed.

I am using VS2010 Premium and SQL Server 20008 R2 on my dev machine.
My database is hosted on local instance of SQL server.
When I use the same schema comparision with a remote server and use the sa login it works. On my dev machine, I tried with sa login as well. but no luck!

Has anyone encountered such an issue and was able to resolve?

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

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

发布评论

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

评论(1

半葬歌 2024-09-20 14:23:44

很好破解了! (不确定这是否是解决方案,至少它现在对我有用)

我用于模式比较的本地数据库是从生产数据库的备份中恢复的。数据库中的用户(可能)将丢失其 SID 与生产服务器上映射的 SID。

我只是删除了数据库用户并重新创建了它们,模式比较又开始工作了。

Well cracked it! (not sure if that is the solution, at least it now works for me)

The local databases I was using for schema comparison were restored from backups of production databases. The users in the databases will loose their SID (probably) with the ones mapped on the production server.

I simply deleted the database users and recreated them and the schema comparison started working again.

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