Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename table using SSDT in Visual Studio

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'

enter image description here

like image 567
Omer Avatar asked Mar 22 '14 12:03

Omer


People also ask

How do I rename a table in Visual Studio?

In Object Explorer, right-click the table you want to rename and choose Design from the shortcut menu. From the View menu, choose Properties. In the field for the Name value in the Properties window, type a new name for the table.

Can we rename table name in SQL?

Any database user can easily change the name by using the RENAME TABLE and ALTER TABLE statement in Structured Query Language. The RENAME TABLE and ALTER TABLE syntax help in changing the name of the table.

How do I create a table in Ssdt?

Explanation. In the Solution Explorer, right click on the Futbol project and choose Add->Table. You will be presented with the Add New Item screen where you will name your table. Name the table Team and click Add.


Video Answer


1 Answers

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.

like image 155
Peter Schott Avatar answered Oct 01 '22 05:10

Peter Schott