How to change the table name in visual studio 2013 in design mode?

前端 未结 8 551
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 04:41

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?

8条回答
  •  执笔经年
    2020-12-29 05:04

    In Server Explorer right click on Views and click New Query.
    use this code to rename table:

    EXEC sp_rename 'Table', 'NewName'  
    

    then click on Execute button.
    after 5-30 seconds in server explorer click on refresh button.

    enter image description here

提交回复
热议问题