How to rename table using SSDT in Visual Studio

2019-04-22 17:44发布

问题:

I am using visual studio 2013 and trying to learn local database operations. I have created a database using VS and create tables. But I cannot rename table names. There is no such a option anywhere or I cannot see. I searched but find nothing.

Could anyone show me how to rename table using 'VISUAL STUDIO 2013 SSDT'

回答1:

Open the table, highlight the table name in the T-SQL portion of the window, click the SQL menu, then choose Refactor and Rename. You probably want to preview changes while you're at it to see what will be affected.