设计器在加载表定义时遇到错误? [英] The designer encountered an error while loading the table definition?

查看:368
本文介绍了设计器在加载表定义时遇到错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Visual Studio 2012 Ultimate时遇到问题.

I've problem with Visual Studio 2012 Ultimate.

我插入了一个"Sql Server数据库",并且一段时间后尝试添加新表"时出现了这个问题

I inserted a "Sql Server Database", and when I try to "Add new table" after a while I get this problem

设计器在加载表定义时遇到错误

The designer encountered an error while loading the table definition

和错误列表"中的两个错误

and two errors in "Error List"

无法检索目标数据库架构.无法重新连接到数据库.

The target database schema could not be retrieved. Unable to reconnect to database.

  • 无法从数据库获取架构信息 (LocalDB)\ v11.0.C:\ USERS \ SRDJAN \ DOCUMENTS \ VISUAL STUDIO 2012 \ WEBSITES \ WEBSITE3 \ APP_DATA \ DATABASE.MDF.
    请关闭该数据库的所有打开的编辑器,检查与该数据库的连接,然后在服务器资源管理器中刷新该数据库. C:\ USERS \ SRDJAN \ DOCUMENTS \ VISUAL STUDIO 2012 \ WEBSITES \ WEBSITE3 \ APP_DATA \ DATABASE.MDF

    Failed to obtain schema information from database (LocalDB)\v11.0.C:\USERS\SRDJAN\DOCUMENTS\VISUAL STUDIO 2012\WEBSITES\WEBSITE3\APP_DATA\DATABASE.MDF.
    Please close any open editors for this database, check your connection to this database, and refresh the database in Server Explorer. C:\USERS\SRDJAN\DOCUMENTS\VISUAL STUDIO 2012\WEBSITES\WEBSITE3\APP_DATA\DATABASE.MDF

  • 我该怎么做才能使它正常工作?

    What can I do to get this working?

    推荐答案

    我遇到了同样的问题,但是当我使用"SQL Server对象资源管理器"而不是服务器资源管理器"来添加新表时,该问题得到了解决.

    I had the same issue, but it get resolved when I use "SQL Server Object Explorer" instead of "server explorer" to add new tables.

    这篇关于设计器在加载表定义时遇到错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆