本文介绍了如何在设计模式下更改visual studio 2013中的表名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Visual Studio 2013 中创建了一个 SQL 数据库表.我想重命名它但 name 属性被禁用.如何更改表名?
I created a SQL database table in Visual Studio 2013. I want to rename it but the name property is disabled. How can I change the table name?
推荐答案
在 Server Explorer 中右键单击 Views,然后单击 New Query.
使用此代码重命名表:
In Server Explorer right click on Views and click New Query.
use this code to rename table:
EXEC sp_rename 'Table', 'NewName'
然后点击执行按钮.
在服务器资源管理器中5-30秒后点击刷新按钮.
then click on Execute button.
after 5-30 seconds in server explorer click on refresh button.
这篇关于如何在设计模式下更改visual studio 2013中的表名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!