如何在设计模式下更改visual studio 2013中的表名? [英] How to change the table name in visual studio 2013 in design mode?

查看:51
本文介绍了如何在设计模式下更改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中的表名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆