I have created a local database db.mdf
in VS2010 asp.net website. In there are a few tables.
Now I need to rename the tables. But query designer doesn't let me. How do I rename those tables?
I have created a local database db.mdf
in VS2010 asp.net website. In there are a few tables.
Now I need to rename the tables. But query designer doesn't let me. How do I rename those tables?
The table opens in the Table Definition window of Table Designer. 2. Right-click the table in the Table Definition window and choose Properties from the shortcut menu. 3. In the field for the Name value in the Properties window, type a new name for the table.
To cancel this action, press the ESC key before leaving this field.
From the File menu choose Save table name.
Rename database tables in Visual Studio:
The answers did not work for me in Visual Studio 2017. The Table field is locked for some reason.
What worked for me is the following. In the T-SQL
tab change the entry
CREATE TABLE [dbo].[Table] (
to
CREATE TABLE [dbo].[NewTableName] (
Then select Update
(top-left). It worked for me.