How can I resolve the “Table 'dbo.Foo' already exists.” error when the table does not exist?

◇◆丶佛笑我妖孽 提交于 2019-11-30 16:48:03

Closing and restarting SSMS seems to be the only way to get rid of the error. After doing so, I can again successfully create the table.

Create the Table with any other name and then rename it works fine. Server refresh did not work for me. You can try to restart Management Studios though.

I was having the same problem. Right-click on your server connection and select 'Refresh'. I did this and was able to save the recreated table without restarting SSMS.

To change this, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.

I found that you just need to close all the 'delete's table' TAB from SSMS and it's done

Make sure that you have no non-saved table changes (better to close all tabulators and try it again)

Right-click on the Server, click on Refresh and try again! Worked like a charm for me. Hope the same works for you as well.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!