Index was outside the bounds of the Array. (Microsoft.SqlServer.smo)

前端 未结 12 1697
有刺的猬
有刺的猬 2020-12-02 22:08

I am using SQL Server 2008 R2. It is working fine. But recently, I have changed my hosting server and I came to know that they have installed SQL Server 2

相关标签:
12条回答
  • 2020-12-02 22:18

    Restarted worked! I found the same error to add new table to my database diagram on sql server 2016, restarted sql server management studio, finally solved.

    0 讨论(0)
  • 2020-12-02 22:19

    Upgrade your SqlServer management studio from 2008 to 2012

    Or Download the service packs of SqlServer Management Studio and update probably resolve you solution

    You can download the SQL Server Management studio 2012 from below link

    Microsoft® SQL Server® 2012 Express http://www.microsoft.com/en-us/download/details.aspx?id=29062

    0 讨论(0)
  • 2020-12-02 22:25

    The suggested causes are now proven to be mostly impossible. I'm running SSMS V17.9.2 against SS 2014 and still have the problem. Memory problems have existed with this tool since at least 2006 when I started using SSMS.

    Yes, MS 'wants' to get rid of diagramming but users won't let them. I have a feeling they will never fix any of these issues because they want users to be so fed up with the tool that enough of them quit using it and they can abandon it entirely.

    Restarting is still a workaround if you can stand doing so numerous times per day.

    0 讨论(0)
  • 2020-12-02 22:34

    I found an issue with Diagram and Schema in SQL-Server 2016 that could be useful to the subject. I was editing diagram (related to, and with lot of tables of, the "sales" schema) and added a new table, BUT forgot to declare it schema, so it was with the default "dbo". Then when I returned to, and opened up, the schema "sales" and tried to add an existent table... Bluf! THAT Triggered exactly the same error described in that thread. I even tried the workaround (drag the table) but it didn't work. Suddenly I noticed that the schema was incorrect, I updated it, tried again, and Eureka! the problem was immediately away... Regards.

    0 讨论(0)
  • 2020-12-02 22:35

    For me this problem still exists with SSMS version 2016 (13.0.16100.1).

    A decent workaround is to not use the 'Right click' -> 'Add table...' dialog, but simply drag the table you want to add from the Object Explorer, onto the Diagram surface. While dragging the mouse icon changes into an 'add' symbol and the table is added when you release the mouse.

    Beats having to close SSMS every time.

    0 讨论(0)
  • 2020-12-02 22:37

    The Reason behind the error message is that SQL couldn't show new features in your old SQL server version.

    Please upgrade your client SQL version to same as your server Sql version

    0 讨论(0)
提交回复
热议问题