gpt4 book ai didi

c# - 设计者在加载表定义时遇到错误?

转载 作者:太空狗 更新时间:2023-10-29 17:32:47 25 4
gpt4 key购买 nike

我对 Visual Studio 2012 Ultimate 有疑问。

我插入了一个“Sql Server 数据库”,过了一会儿我尝试“添加新表”时出现了这个问题

The designer encountered an error while loading the table definition

和“错误列表”中的两个错误

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

  2. 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

我该怎么做才能让它发挥作用?

Picture

最佳答案

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

关于c# - 设计者在加载表定义时遇到错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13610569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com