The designer encountered an error while loading the table definition?

前端 未结 9 1261
执笔经年
执笔经年 2021-02-06 00:43

I\'ve problem with Visual Studio 2012 Ultimate.

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

相关标签:
9条回答
  • 2021-02-06 00:46

    I know this is a really old issue but in case anyone else didn't have any luck with the answers above: what worked for me was simply disconnecting from the server and reconnecting.

    0 讨论(0)
  • 2021-02-06 00:57

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

    0 讨论(0)
  • 2021-02-06 00:57

    Use "SQL Server Object Explorer" instead "server explorer" but close all the database connections that appear in the server explorer.

    From the SQL server object explorer add the local SQL server and that's it, works like a charm.

    0 讨论(0)
  • 2021-02-06 01:02

    To solve this problem do the following steps:

    1. Go to VS Tools → Options → Database Tools → Query And Views Designer.

    2. Set "Cancel Long Running Query" after 240 second.

    3. Delete all connections in "SQL server explorer" and "SQL Server Objects Explorer" - (this step is very important).

    4. Reopen VS and recreate your connections.

    0 讨论(0)
  • 2021-02-06 01:03

    Please check that the login you are using to connect to the database in VS has the necessary permissions to create tables.

    0 讨论(0)
  • 2021-02-06 01:06

    Follow these steps:

    1. Right click on Data Connection
    2. Click Add Connection
    3. Select your Data Source
    4. Browse to the existing database file on your system (e.g. C:\Users\pcname\Documents\databasefile.mdf)
    5. Click on Test Connection
    6. If connection succeeded then problem should be solved, otherwise try it after restarting Visual Studio
    0 讨论(0)
提交回复
热议问题