Дизайнер обнаружил ошибку при загрузке определения таблицы?
У меня проблема с Visual Studio 2012 Ultimate.
Я вставил «Базу данных сервера Sql», и когда я пытаюсь «Добавить новую таблицу» через некоторое время, я получаю эту проблему.
Дизайнер обнаружил ошибку при загрузке определения таблицы
и две ошибки в «Списке ошибок»
-
Не удалось получить схему целевой базы данных. Не удалось повторно подключиться к базе данных.
-
Не удалось получить информацию о схеме из базы данных (LocalDB)v11.0.C:USERSSRDJANDOCUMENTSVISUAL STUDIO 2012WEBSITESWEBSITE3APP_DATADATABASE.MDF.
Закройте все открытые редакторы для этой базы данных, проверьте подключение к этой базе данных и обновите базу данных в обозревателе серверов. C:USERSSRDJANDOCUMENTSVISUAL STUDIO 2012WEBSITESWEBSITE3APP_DATADATABASE.MDF
Что я могу сделать, чтобы это заработало?

У меня была такая же проблема, но она решается, когда я использую «Обозреватель объектов SQL Server» вместо «обозреватель сервера» для добавления новых таблиц.
Создан 26 июн.
Убедитесь, что логин, который вы используете для подключения к базе данных в VS, имеет необходимые разрешения для создания таблиц.
ответ дан 12 мар ’13, в 09:03
Используйте «Обозреватель объектов SQL Server» вместо «обозреватель серверов», но закройте все подключения к базе данных, которые отображаются в обозревателе серверов.
Из проводника объектов SQL-сервера добавьте локальный SQL-сервер, и все работает как шарм.
Создан 02 янв.
Я знаю, что это действительно старая проблема, но на случай, если кому-то еще не повезло с ответами выше: у меня сработало простое отключение от сервера и повторное подключение.
ответ дан 02 апр.
Следуй этим шагам:
- Щелкните правой кнопкой мыши по подключению данных
- Нажмите «Добавить подключение».
- Выберите источник данных
- Перейдите к существующему файлу базы данных в вашей системе (например,
C:UserspcnameDocumentsdatabasefile.mdf) - Нажмите «Проверить соединение».
- Если подключение прошло успешно, проблема должна быть решена, в противном случае попробуйте после перезапуска Visual Studio.
ответ дан 19 мар ’15, в 15:03
Перезапуск Visual Studio исправил это для меня. У меня он был открыт месяц или больше.
Возможно, некоторым людям стоит сначала попробовать этот простой шаг, прежде чем углубляться.
ответ дан 24 авг.
Для решения этой проблемы выполните следующие шаги:
-
Перейдите в Инструменты VS → Параметры → Инструменты базы данных → Дизайнер запросов и представлений.
-
Установите «Отменить длительный запрос» через 240 секунд.
-
Удалите все подключения в «Проводнике SQL Server» и «Обозревателе объектов SQL Server» (этот шаг очень важен).
-
Снова откройте VS и заново создайте свои соединения.
ответ дан 24 авг.
У меня была такая же проблема с Visual Studio 2013 из-за неправильного имени базы данных.
Чтобы решить эту проблему, перейдите в обозреватель серверов → щелкните правой кнопкой мыши свою базу данных → Изменить соединение… → в разделе «Подключиться к имени базы данных:» выберите правильное имя базы данных.
ответ дан 24 авг.
Если вы не используете встроенную безопасность (проверку подлинности Windows), убедитесь, что у пользователя базы данных есть роль «владелец базы данных».
ответ дан 24 авг.
Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками
c#
visual-studio
visual-studio-2012
or задайте свой вопрос.
I just added SSDT to my Visual Studio 2010 Ultimate running on Windows 7 Pro 64 bits.
I added a SQL Server 2008 database to a SQL Server 2012 Developer Edition 64 bits.
I connected SSDT to my SQL 2012 Instance and opened my database.
When I right click on any table and select «View Designer» it takes a while to show me the TSQL panel and a while later SSDT shows an error message saying
«Problem Loading
The designer encountered an error while loading the table definition».
VS error window has two entries:
Error 1 The target database schema could not be retrieved. Unable to reconnect to database. RFQ 0 0
Error 2 Failed to obtain schema information from database MYRFQ.RFQ.
Please close any open editors for this database, check your connection to this database, and refresh the database in Server Explorer. RFQ 0 0
If I conncect to SQL Server and the database with SQL Server Management Studio (the same Windows User) I am able to work the table definition without any problem.
I was able to edit a table definition once (without changing anything).
If I try to add a new table, I receive the same eror message.
Can you help?
Thanks
I just added SSDT to my Visual Studio 2010 Ultimate running on Windows 7 Pro 64 bits.
I added a SQL Server 2008 database to a SQL Server 2012 Developer Edition 64 bits.
I connected SSDT to my SQL 2012 Instance and opened my database.
When I right click on any table and select «View Designer» it takes a while to show me the TSQL panel and a while later SSDT shows an error message saying
«Problem Loading
The designer encountered an error while loading the table definition».
VS error window has two entries:
Error 1 The target database schema could not be retrieved. Unable to reconnect to database. RFQ 0 0
Error 2 Failed to obtain schema information from database MYRFQ.RFQ.
Please close any open editors for this database, check your connection to this database, and refresh the database in Server Explorer. RFQ 0 0
If I conncect to SQL Server and the database with SQL Server Management Studio (the same Windows User) I am able to work the table definition without any problem.
I was able to edit a table definition once (without changing anything).
If I try to add a new table, I receive the same eror message.
Can you help?
Thanks
- Remove From My Forums
Error creating table in Visual Studio 2015 — SQL Server LocalDB
-
Question
-
Hi,
I am currently trying to create a project in C++ in Visual Studio 2015 community. I have created a localDB instance of SQL server, which I am connected too. However, when I go to create a table, I get the following error message:
«Problem Loading. The designed encountered an error while loading the table definition».
I have tried searching various forums to see if anyone else has has this problem, but the general solutions have just been to restart Visual Studio, which doesn’t work for me.
Could anyone help with this?
Thanks,
Dan
Answers
-
Hi Dan,
This issue is usually related to an access issue. Please make sure that the user account you are using to access the database has necessary permissions to create tables. It requires CREATE TABLE permission in the database and ALTER permission
on the schema in which the table is being created. For more details, please review thisarticle.
In addition, if you have sufficient permission, please disconnect SQL Server LocalDB and use «SQL Server Object Explorer» to reconnect it in Visual Studio, then check if you can create table successfully. For more details, please review this similar
thread.
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support
-
Proposed as answer by
Monday, August 3, 2015 5:26 AM
-
Marked as answer by
Lydia ZhangMicrosoft contingent staff
Tuesday, August 4, 2015 10:00 AM
-
Proposed as answer by
- Remove From My Forums
Error creating table in Visual Studio 2015 — SQL Server LocalDB
-
Question
-
Hi,
I am currently trying to create a project in C++ in Visual Studio 2015 community. I have created a localDB instance of SQL server, which I am connected too. However, when I go to create a table, I get the following error message:
«Problem Loading. The designed encountered an error while loading the table definition».
I have tried searching various forums to see if anyone else has has this problem, but the general solutions have just been to restart Visual Studio, which doesn’t work for me.
Could anyone help with this?
Thanks,
Dan
Answers
-
Hi Dan,
This issue is usually related to an access issue. Please make sure that the user account you are using to access the database has necessary permissions to create tables. It requires CREATE TABLE permission in the database and ALTER permission
on the schema in which the table is being created. For more details, please review thisarticle.
In addition, if you have sufficient permission, please disconnect SQL Server LocalDB and use «SQL Server Object Explorer» to reconnect it in Visual Studio, then check if you can create table successfully. For more details, please review this similar
thread.
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support
-
Proposed as answer by
Monday, August 3, 2015 5:26 AM
-
Marked as answer by
Lydia ZhangMicrosoft contingent staff
Tuesday, August 4, 2015 10:00 AM
-
Proposed as answer by